Calc Disparity Image¶
Function¶
This Step obtains a disparity image using the input rectified stereo images.
Usage Scenario¶
This Step is for developers and is used to debug in the passive stereo camera mode. Regular users do not need to use this Step in general application scenarios.
Input and Output¶
Input:
Rectified left image of the stereo camera mode output.
Rectified right image of the stereo camera mode output.
The mapping matrix from camera disparity values to depth values (should be a 4 x 4 matrix).
Scaling parameters for input validation (since this Step requires the original, unscaled image, if any of the scaling parameters are not 1, the Step will not run).
Edge-enhanced left image (optional).
Depth map for reference (optional). A passive stereo camera can leverage depth values from active stereo mode to compensate for point cloud defects. The user can input the depth map to this port.
Output:
The output disparity image. Note: this disparity image can not be used as the depth map input to another Step before data conversion.
The confidence mask (8U) for the output disparity image. Regions with large depth discontinuities will be presented with low confidences.