| Table of Contents / 3D Reconstruction / Binocular Stereo | Operators |
disparity_image_to_xyz — Transform a disparity image into 3D points in a rectified stereo system.
disparity_image_to_xyz(Disparity : X, Y, Z : CamParamRect1, CamParamRect2, RelPoseRect : )
Given the disparity image Disparity of a rectified binocular stereo system, disparity_image_to_xyz computes the corresponding 3D points. Their coordinates relative to the rectified camera 1 are stored as gray values in the images X, Y, and Z, i.e., the pixels at the position (Row,Colum) in X, Y, and Z contain the x, y, and z coordinate, respectively, of the pixel (Row,Colum) in the disparity image.
The rectified binocular camera system is specified by its internal camera parameters CamParamRect1 of the rectified camera 1 and CamParamRect2 of the rectified camera 2, and the external parameters RelPoseRect defining the pose of the rectified camera 2 in relation to the rectified camera 1. These camera parameters can be obtained from the operators calibrate_cameras and gen_binocular_rectification_map. Focus and scale factor of the rectified camera system 1 and 2 must be equal.
Disparity image.
X coordinates of the points in the rectified camera system 1.
Y coordinates of the points in the rectified camera system 1.
Z coordinates of the points in the rectified camera system 1.
Internal camera parameters of the rectified camera 1.
Number of elements: (CamParamRect1 == 8) || (CamParamRect1 == 12)
Internal camera parameters of the rectified camera 2.
Number of elements: (CamParamRect2 == 8) || (CamParamRect2 == 12)
Pose of the rectified camera 2 in relation to the rectified camera 1.
Number of elements: 7
disparity_image_to_xyz (ImageDisparity, ImgX, ImgY, ImgZ, RectCamParL, \
RectCamParR, RectLPosRectR)
get_region_points (ImageDisparity, Rows, Columns)
get_grayval (ImgX, Rows, Columns, XValues)
get_grayval (ImgY, Rows, Columns, YValues)
get_grayval (ImgZ, Rows, Columns, ZValues)
The operator disparity_image_to_xyz returns the value 2 (H_MSG_TRUE) if the input is not empty. The behavior in case of empty input (no input image available) is set via the operator set_system('no_object_result',<Result>). The behavior in case of empty region (the region is the empty set) is set via set_system('empty_region_result',<Result>). If necessary an exception is raised.
disparity_to_point_3d, binocular_distance
binocular_calibration, gen_binocular_rectification_map, intersect_lines_of_sight
3D Metrology
| Table of Contents / 3D Reconstruction / Binocular Stereo | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |