Name
change_radial_distortion_image T_change_radial_distortion_image ChangeRadialDistortionImage change_radial_distortion_image ChangeRadialDistortionImage ChangeRadialDistortionImage — Change the radial distortion of an image.
change_radial_distortion_image change_radial_distortion_image ChangeRadialDistortionImage change_radial_distortion_image ChangeRadialDistortionImage ChangeRadialDistortionImage changes the radial distortion
of the input image Image Image Image Image Image image in accordance to the internal camera
parameters CamParamIn CamParamIn CamParamIn CamParamIn CamParamIn camParamIn and CamParamOut CamParamOut CamParamOut CamParamOut CamParamOut camParamOut . Each pixel of
the output image that lies within the region Region Region Region Region Region region is
transformed into the image plane using
CamParamOut CamParamOut CamParamOut CamParamOut CamParamOut camParamOut and subsequently projected into a subpixel of
Image Image Image Image Image image using CamParamIn CamParamIn CamParamIn CamParamIn CamParamIn camParamIn .
The resulting gray value is determined by
bilinear interpolation. If the subpixel is outside of Image Image Image Image Image image ,
the corresponding pixel in ImageRectified ImageRectified ImageRectified ImageRectified ImageRectified imageRectified is set to 'black'
and eliminated from the image domain.
If the gray values of all pixels in the output image shall be
calculated, it is sufficient to pass an empty object in
Region Region Region Region Region region (which must be previously generated by, for example,
using gen_empty_obj gen_empty_obj GenEmptyObj gen_empty_obj GenEmptyObj GenEmptyObj ). This is especially useful if the size
of the output image differs from the size of the input image, and
hence, it is not possible to simply pass the region of the input
image in Region Region Region Region Region region .
If CamParamOut CamParamOut CamParamOut CamParamOut CamParamOut camParamOut was computed via
change_radial_distortion_cam_par change_radial_distortion_cam_par ChangeRadialDistortionCamPar change_radial_distortion_cam_par ChangeRadialDistortionCamPar ChangeRadialDistortionCamPar , ImageRectified ImageRectified ImageRectified ImageRectified ImageRectified imageRectified
is equivalent to Image Image Image Image Image image obtained with a lens with a modified
radial distortion. If
the image
is rectified. A subsequent pose estimation (determination of the
external camera parameters) is not affected by this operation.
Please note that change_radial_distortion_image change_radial_distortion_image ChangeRadialDistortionImage change_radial_distortion_image ChangeRadialDistortionImage ChangeRadialDistortionImage does not work
for line scan cameras. Instead, you might want to use
image_to_world_plane image_to_world_plane ImageToWorldPlane image_to_world_plane ImageToWorldPlane ImageToWorldPlane .
change_radial_distortion_image change_radial_distortion_image ChangeRadialDistortionImage change_radial_distortion_image ChangeRadialDistortionImage ChangeRadialDistortionImage can be executed on OpenCL devices if
the input image does not exceed the maximum size of image objects of the
selected device. As the OpenCL implementation uses single precision
arithmetic, the results can differ from the CPU implementation.
Supports OpenCL compute devices.
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on channel level.
Resulting image with modified radial distortion.
change_radial_distortion_image change_radial_distortion_image ChangeRadialDistortionImage change_radial_distortion_image ChangeRadialDistortionImage ChangeRadialDistortionImage returns 2 (H_MSG_TRUE) if all parameter
values are correct. If the input is empty (no input image is
available) the behavior can be set via
set_system('no_object_result',<Result>) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) . If necessary, an
exception is raised.
change_radial_distortion_cam_par change_radial_distortion_cam_par ChangeRadialDistortionCamPar change_radial_distortion_cam_par ChangeRadialDistortionCamPar ChangeRadialDistortionCamPar ,
read_image read_image ReadImage read_image ReadImage ReadImage ,
grab_image grab_image GrabImage grab_image GrabImage GrabImage
edges_image edges_image EdgesImage edges_image EdgesImage EdgesImage ,
threshold threshold Threshold threshold Threshold Threshold
change_radial_distortion_cam_par change_radial_distortion_cam_par ChangeRadialDistortionCamPar change_radial_distortion_cam_par ChangeRadialDistortionCamPar ChangeRadialDistortionCamPar ,
camera_calibration camera_calibration CameraCalibration camera_calibration CameraCalibration CameraCalibration ,
read_cam_par read_cam_par ReadCamPar read_cam_par ReadCamPar ReadCamPar ,
change_radial_distortion_contours_xld change_radial_distortion_contours_xld ChangeRadialDistortionContoursXld change_radial_distortion_contours_xld ChangeRadialDistortionContoursXld ChangeRadialDistortionContoursXld ,
change_radial_distortion_points change_radial_distortion_points ChangeRadialDistortionPoints change_radial_distortion_points ChangeRadialDistortionPoints ChangeRadialDistortionPoints
Calibration