change_radial_distortion_image T_change_radial_distortion_image ChangeRadialDistortionImage ChangeRadialDistortionImage change_radial_distortion_image (算子)
名称
change_radial_distortion_image T_change_radial_distortion_image ChangeRadialDistortionImage ChangeRadialDistortionImage change_radial_distortion_image — 更改图像的径向畸变。
签名
描述
change_radial_distortion_image change_radial_distortion_image ChangeRadialDistortionImage ChangeRadialDistortionImage ChangeRadialDistortionImage change_radial_distortion_image 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 cam_param_in and CamParamOut CamParamOut CamParamOut CamParamOut camParamOut cam_param_out . 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 cam_param_out and subsequently projected into a subpixel of
Image Image Image Image image image using CamParamIn CamParamIn CamParamIn CamParamIn camParamIn cam_param_in .
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 image_rectified 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 GenEmptyObj GenEmptyObj gen_empty_obj ). 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 cam_param_out was computed via
change_radial_distortion_cam_par change_radial_distortion_cam_par ChangeRadialDistortionCamPar ChangeRadialDistortionCamPar ChangeRadialDistortionCamPar change_radial_distortion_cam_par , ImageRectified ImageRectified ImageRectified ImageRectified imageRectified image_rectified
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 ChangeRadialDistortionImage ChangeRadialDistortionImage change_radial_distortion_image does not
work for line scan cameras with perspective lenses. Instead, you
might want to use image_to_world_plane image_to_world_plane ImageToWorldPlane ImageToWorldPlane ImageToWorldPlane image_to_world_plane 。
注意
change_radial_distortion_image change_radial_distortion_image ChangeRadialDistortionImage ChangeRadialDistortionImage ChangeRadialDistortionImage change_radial_distortion_image 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.
执行信息
支持 OpenCL 计算设备。
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
在通道级别上自动并行化。
参数
Image Image Image Image image image (输入对象) (multichannel-)image(-array) → object HImage HObject HImage Hobject (byte / uint2 / real)
Original image.
ImageRectified ImageRectified ImageRectified ImageRectified imageRectified image_rectified (输出对象) (multichannel-)image(-array) → object HImage HObject HImage Hobject * (byte / uint2 / real)
Resulting image with modified radial distortion.
CamParamIn CamParamIn CamParamIn CamParamIn camParamIn cam_param_in (输入控制) campar → HCamPar , HTuple Sequence[Union[int, float, str]] HTuple Htuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Internal camera parameter for Image Image Image Image image image 。
CamParamOut CamParamOut CamParamOut CamParamOut camParamOut cam_param_out (输入控制) campar → HCamPar , HTuple Sequence[Union[int, float, str]] HTuple Htuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Internal camera parameter for Image Image Image Image image image 。
结果
change_radial_distortion_image change_radial_distortion_image ChangeRadialDistortionImage ChangeRadialDistortionImage ChangeRadialDistortionImage change_radial_distortion_image 在所有参数值正确时返回 2 ( H_MSG_TRUE )。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>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) set_system("no_object_result",<Result>) 。如有必要,则抛出异常。
可能的前趋
change_radial_distortion_cam_par change_radial_distortion_cam_par ChangeRadialDistortionCamPar ChangeRadialDistortionCamPar ChangeRadialDistortionCamPar change_radial_distortion_cam_par ,
read_image read_image ReadImage ReadImage ReadImage read_image ,
grab_image grab_image GrabImage GrabImage GrabImage grab_image
可能的后继
edges_image edges_image EdgesImage EdgesImage EdgesImage edges_image ,
threshold threshold Threshold Threshold Threshold threshold
另见
change_radial_distortion_cam_par change_radial_distortion_cam_par ChangeRadialDistortionCamPar ChangeRadialDistortionCamPar ChangeRadialDistortionCamPar change_radial_distortion_cam_par ,
camera_calibration camera_calibration CameraCalibration CameraCalibration CameraCalibration camera_calibration ,
read_cam_par read_cam_par ReadCamPar ReadCamPar ReadCamPar read_cam_par ,
change_radial_distortion_contours_xld change_radial_distortion_contours_xld ChangeRadialDistortionContoursXld ChangeRadialDistortionContoursXld ChangeRadialDistortionContoursXld change_radial_distortion_contours_xld ,
change_radial_distortion_points change_radial_distortion_points ChangeRadialDistortionPoints ChangeRadialDistortionPoints ChangeRadialDistortionPoints change_radial_distortion_points
模块
标定