Class StructuredLightPattern
java.lang.Object
org.opencv.core.Algorithm
org.opencv.structured_light.StructuredLightPattern
- Direct Known Subclasses:
GrayCodePattern, SinusoidalPattern
Abstract base class for generating and decoding structured light patterns.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StructuredLightPattern__fromPtr__(long addr) booleanDecodes the structured light pattern, generating a disparity mapbooleanDecodes the structured light pattern, generating a disparity mapbooleandecode(List<List<Mat>> patternImages, Mat disparityMap, List<Mat> blackImages, List<Mat> whiteImages) Decodes the structured light pattern, generating a disparity mapbooleandecode(List<List<Mat>> patternImages, Mat disparityMap, List<Mat> blackImages, List<Mat> whiteImages, int flags) Decodes the structured light pattern, generating a disparity mapbooleanGenerates the structured light pattern to project.Methods inherited from class Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
StructuredLightPattern
protected StructuredLightPattern(long addr)
-
-
Method Details
-
__fromPtr__
-
generate
-
decode
public boolean decode(List<List<Mat>> patternImages, Mat disparityMap, List<Mat> blackImages, List<Mat> whiteImages, int flags) Decodes the structured light pattern, generating a disparity map- Parameters:
patternImages- The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.disparityMap- The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.blackImages- The all-black images needed for shadowMasks computation.whiteImages- The all-white images needed for shadowMasks computation.flags- Flags setting decoding algorithms. Default: DECODE_3D_UNDERWORLD. Note: All the images must be at the same resolution.- Returns:
- automatically generated
-
decode
public boolean decode(List<List<Mat>> patternImages, Mat disparityMap, List<Mat> blackImages, List<Mat> whiteImages) Decodes the structured light pattern, generating a disparity map- Parameters:
patternImages- The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.disparityMap- The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.blackImages- The all-black images needed for shadowMasks computation.whiteImages- The all-white images needed for shadowMasks computation. Note: All the images must be at the same resolution.- Returns:
- automatically generated
-
decode
Decodes the structured light pattern, generating a disparity map- Parameters:
patternImages- The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.disparityMap- The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.blackImages- The all-black images needed for shadowMasks computation. Note: All the images must be at the same resolution.- Returns:
- automatically generated
-
decode
Decodes the structured light pattern, generating a disparity map- Parameters:
patternImages- The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.disparityMap- The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map. Note: All the images must be at the same resolution.- Returns:
- automatically generated
-