Change the radial distortion of an image.
change_radial_distortion_image changes the radial distortion of the input image Image in accordance to the interior camera parameters CamParIn and CamParOut. The image size remains unchanged. Each pixel of the output image that lies within the region Region is transformed into the image plane using CamParOut and subsequently projected into a subpixel of Image using CamParIn. The resulting gray value is determined by bilinear interpolation. If the subpixel is outside of Image, the corresponding pixel in ImageRectified is set to 'black' and eliminated from the image domain.
If CamParOut was computed via change_radial_distortion_cam_par, ImageRectified is equivalent to Image obtained with a lens with a modified radial distortion. If Kappa is 0 the image is rectified. A subsequent pose estimation (determination of the exterior camera parameters) is not affected by this operation.
|
Image (input_object) |
(multichannel-)image(-array) -> object : byte / uint2 |
| Original image. | |
|
Region (input_object) |
region -> object |
| Region of interest in ImageRectified. | |
|
ImageRectified (output_object) |
(multichannel-)image(-array) -> object : byte / uint2 |
| Resulting image with modified radial distortion. | |
|
CamParIn (input_control) |
real-array -> real |
| Interior camera parameter for Image. | |
|
CamParOut (input_control) |
real-array -> real |
| Interior camera parameter for Image. | |
change_radial_distortion_image returns 2 (H_MSG_TRUE) if all parameter values are correct and the input is not empty. If necessary, an exception handling is raised.
change_radial_distortion_image is reentrant and processed without parallelization.
change_radial_distortion_cam_par, read_image, grab_image
change_radial_distortion_cam_par, camera_calibration, read_cam_par, change_radial_distortion_contours_xld
Calibration