Change the radial distortion of contours.
change_radial_distortion_contours_xld changes the radial distortion of the input contours Contours in accordance to the interior camera parameters CamParIn and CamParOut. Each subpixel of an input contour is transformed into the image plane using CamParIn and subsequently projected into a subpixel of the corresponding contour in ContoursRectified using CamParOut.
If CamParOut was computed via change_radial_distortion_cam_par, the contours ContoursRectified are equivalent to Contours obtained with a lens with a modified radial distortion. If Kappa is 0 the contours are rectified. A subsequent pose estimation (determination of the exterior camera parameters) is not affected by this operation.
|
Contours (input_object) |
xld_cont(-array) -> object |
| Original contours. | |
|
ContoursRectified (output_object) |
xld_cont(-array) -> object |
| Resulting contours with modified radial distortion. | |
|
CamParIn (input_control) |
real-array -> real |
| Interior camera parameter for Contours. | |
|
CamParOut (input_control) |
real-array -> real |
| Interior camera parameter for ContoursRectified. | |
change_radial_distortion_contours_xld is reentrant and processed without parallelization.
change_radial_distortion_cam_par, gen_contours_skeleton_xld, edges_sub_pix, smooth_contours_xld
gen_polygons_xld, smooth_contours_xld
change_radial_distortion_cam_par, camera_calibration, read_cam_par, change_radial_distortion_image
Camera calibration