Distortion correction functions


Functions

cpl_polynomial * sinfoni_distortion_estimate (const cpl_image *org, int xmin, int ymin, int xmax, int ymax, int auto_ramp_sub, int arc_sat, cpl_apertures **arcs)
 Estimate the distortion using vertical curved arcs. More...

cpl_apertures * sinfoni_distortion_detect_arcs (cpl_image *im, cpl_image **label_im, int arc_sat, int xmin, int ymin, int xmax, int ymax)
 Detect the vertical arcs in an image. More...


Function Documentation

cpl_apertures* sinfoni_distortion_detect_arcs cpl_image *    im,
cpl_image **    label_im,
int    arc_sat,
int    xmin,
int    ymin,
int    xmax,
int    ymax
 

Detect the vertical arcs in an image.

Parameters:
im  the input image
label_im  the output label image
arc_sat  Saturation threshold for the arcs
xmin 
ymin  Define the zone to take into account
xmax 
ymax 
Returns:
The arcs or NULL in error case
The arcs are expected to be vertical.

Definition at line 248 of file sinfoni_distortion.c.

cpl_polynomial* sinfoni_distortion_estimate const cpl_image *    org,
int    xmin,
int    ymin,
int    xmax,
int    ymax,
int    auto_ramp_sub,
int    arc_sat,
cpl_apertures **    arcs
 

Estimate the distortion using vertical curved arcs.

Parameters:
org  the input image
xmin 
ymin  Define the zone to take into account
xmax 
ymax 
auto_ramp_sub  To automatically clean the image before detection
arc_sat  Saturation threshold for the arcs
arcs  The found arcs
Returns:
The 2d polynomial describing the distortion or NULL in error case
The arcs are expected to be vertical.

If (Xi, yi) define positions on the curved arcs, and (xi, yi) the associated positions on the straight arcs, the created polynomial is Xi = P(xi, yi).

This polynomial can be used as it is by the CPL warping function to correct the image.

Definition at line 107 of file sinfoni_distortion.c.


Generated on Wed Oct 26 13:08:56 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001