Interface StereoDisparity<Image extends ImageGray,Disparity extends ImageGray>
-
- All Known Implementing Classes:
- WrapDisparitySadRect
public interface StereoDisparity<Image extends ImageGray,Disparity extends ImageGray>Given two rectified images compute the corresponding dense disparity image. Input images are assumed to be rectified along the x-axis. Disparity goes from left to right image, thus the x coordinates of pixels in the left and right images have the following relationship x_right = x_left + disparity, and y_right = y_left.. To speed up calculations only a limited range of disparities are considered from minDisparity to maxDisparity. Image borders are not processed and the border size is specified by functions below.
DISPARITY IMAGE FORMAT: Returned disparity image is offset from the true value by minDisparity. This is done to maximize storage efficiency. To get the actual disparity value simply extract the value of a pixel and add minDisparity to it. Invalid pixels are indicated by having a value greater than (maxDisparity - minDisparity).
- See Also:
StereoDisparitySparse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intgetBorderX()Border around the image's x-axis which is not processed.intgetBorderY()Border around the image's y-axis which is not processed.DisparitygetDisparity()Return the computed disparity image.java.lang.Class<Disparity>getDisparityType()Type of disparity image it can write to.java.lang.Class<Image>getInputType()Type of input images it can processintgetMaxDisparity()The maximum disparity which will be checked for.intgetMinDisparity()The minimum disparity which will be checked for.voidprocess(Image imageLeft, Image imageRight)Computes stereo disparity.
-
-
-
Method Detail
-
process
void process(Image imageLeft, Image imageRight)
Computes stereo disparity.- Parameters:
imageLeft- Input left rectified image.imageRight- Input right rectified image.
-
getDisparity
Disparity getDisparity()
Return the computed disparity image. See comments in class description on disparity image format.- Returns:
- Output disparity from left to right image.
-
getMinDisparity
int getMinDisparity()
The minimum disparity which will be checked for.- Returns:
- Minimum disparity.
-
getMaxDisparity
int getMaxDisparity()
The maximum disparity which will be checked for.- Returns:
- Maximum disparity.
-
getBorderX
int getBorderX()
Border around the image's x-axis which is not processed.- Returns:
- border x-axis
-
getBorderY
int getBorderY()
Border around the image's y-axis which is not processed.- Returns:
- border y-axis
-
getInputType
java.lang.Class<Image> getInputType()
Type of input images it can process- Returns:
- Input image type
-
getDisparityType
java.lang.Class<Disparity> getDisparityType()
Type of disparity image it can write to.- Returns:
- Output image type
-
-
DataMelt 3.0 © DataMelt by jWork.ORG