Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
common.c File Reference
+ Include dependency graph for common.c:

Go to the source code of this file.

Functions

int get_homography (const point_t *source, const point_t *target, float *h)
 
point_t apply_homography (point_t p, const float *h)
 
float apply_homography_scaling (point_t p, const float *h)
 

Function Documentation

◆ apply_homography()

point_t apply_homography ( point_t  p,
const float *  h 
)

Definition at line 68 of file common.c.

References p, point_t::x, and x.

Referenced by _extract_patches(), draw_box(), draw_f_boxes(), get_corners(), and gui_post_expose().

◆ apply_homography_scaling()

float apply_homography_scaling ( point_t  p,
const float *  h 
)

Definition at line 79 of file common.c.

References p, point_t::x, and x.

Referenced by gui_post_expose().

◆ get_homography()

int get_homography ( const point_t source,
const point_t target,
float *  h 
)

Definition at line 27 of file common.c.

References gauss_solve(), i, P, point_t::x, and point_t::y.

Referenced by draw_image_callback(), get_xyz_sample_from_image(), and update_bounding_box().