public class StructuredLightPattern extends Algorithm
| Modifier | Constructor and Description |
|---|---|
protected |
StructuredLightPattern(long addr) |
| Modifier and Type | Method and Description |
|---|---|
static StructuredLightPattern |
__fromPtr__(long addr) |
boolean |
decode(List<List<Mat>> patternImages,
Mat disparityMap)
Decodes the structured light pattern, generating a disparity map
|
boolean |
decode(List<List<Mat>> patternImages,
Mat disparityMap,
List<Mat> blackImages)
Decodes the structured light pattern, generating a disparity map
|
boolean |
decode(List<List<Mat>> patternImages,
Mat disparityMap,
List<Mat> blackImages,
List<Mat> whiteImages)
Decodes the structured light pattern, generating a disparity map
|
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
|
protected void |
finalize() |
boolean |
generate(List<Mat> patternImages)
Generates the structured light pattern to project.
|
clear, empty, getDefaultName, getNativeObjAddr, savepublic static StructuredLightPattern __fromPtr__(long addr)
public boolean generate(List<Mat> patternImages)
patternImages - The generated pattern: a vector<Mat>, in which each image is a CV_8U Mat at projector's resolution.public boolean decode(List<List<Mat>> patternImages, Mat disparityMap, List<Mat> blackImages, List<Mat> whiteImages, int flags)
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.public boolean decode(List<List<Mat>> patternImages, Mat disparityMap, List<Mat> blackImages, List<Mat> whiteImages)
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.public boolean decode(List<List<Mat>> patternImages, Mat disparityMap, List<Mat> blackImages)
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.public boolean decode(List<List<Mat>> patternImages, Mat disparityMap)
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.Copyright © 2026. All rights reserved.