Determine new camera parameters in accordance to the specified radial distortion.
::change_radial_distortion_cam_par modifies the internal camera parameters in accordance to the specified radial distortion Kappa. Via Mode one of the following modes can be selected:
'fixed': Only Kappa is modified, the other internal camera parameters remain unchanged. In general this leads to a change of the visible part of the scene. 'fullsize': The scale factors Sx and Sy and the image center point [Cx,Cy] are modified in order to preserve the visible part of the scene. Thus, all points visible in the original video image are also visible in the modified (rectified) image. In general this leads to undefined pixels in the modified image. 'adaptive': A trade off between the other modes: The visible part of the scene is slightly reduced to prevent undefined pixels in the modified image. Similiar to 'fullsize' the scale factors and the image center point are modified. In all modes the radial distortion coefficient Kappa in CamParOut is set to Kappa. The transformation of a pixel in the modified image into the image plane using CamParOut results in the same point as the transformation of a pixel in the original image via CamParIn.
|
Mode (input_control) |
string -> HTuple.char * |
| Mode | |
| Default value: 'adaptive' | |
| Suggested values: 'fullsize', 'adaptive', 'fixed' | |
|
CamParIn (input_control) |
real-array -> HTuple.double |
| Internal camera parameters (original). | |
|
Kappa (input_control) |
real -> HTuple.double |
| Desired radial distortion. | |
| Default value: 0.0 | |
|
CamParOut (output_control) |
real-array -> HTuple.double * |
| Internal camera parameters (modified). | |
::change_radial_distortion_cam_par returns H_MSG_TRUE if all parameter values are correct. If necessary, an exception handling is raised.
::camera_calibration, ::read_cam_par
::change_radial_distortion_image, ::change_radial_distortion_contours_xld
::camera_calibration, ::read_cam_par, ::change_radial_distortion_image, ::change_radial_distortion_contours_xld
Camera calibration