change_radial_distortion_contours_xld — Change the radial distortion of contours.
change_radial_distortion_contours_xld changes the radial distortion of the input contours Contours in accordance to the internal camera parameters CamParamIn and CamParamOut. Each subpixel of an input contour is transformed into the image plane using CamParamIn and subsequently projected into a subpixel of the corresponding contour in ContoursRectified using CamParamOut.
If CamParamOut 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 external camera parameters) is not affected by this operation.
Resulting contours with modified radial distortion.
Internal camera parameter for Contours.
Number of elements: CamParamIn == 8 || CamParamIn == 12
Internal camera parameter for ContoursRectified.
Number of elements: CamParamOut == 8 || CamParamOut == 12
change_radial_distortion_cam_par, gen_contours_skeleton_xld, edges_sub_pix, smooth_contours_xld
change_radial_distortion_cam_par, camera_calibration, read_cam_par, change_radial_distortion_image, change_radial_distortion_points