public class SinusoidalPattern extends StructuredLightPattern
Modifier | Constructor and Description |
---|---|
protected |
SinusoidalPattern(long addr) |
Modifier and Type | Method and Description |
---|---|
static SinusoidalPattern |
__fromPtr__(long addr) |
void |
computeDataModulationTerm(List<Mat> patternImages,
Mat dataModulationTerm,
Mat shadowMask)
compute the data modulation term.
|
void |
computePhaseMap(List<Mat> patternImages,
Mat wrappedPhaseMap)
Compute a wrapped phase map from sinusoidal patterns.
|
void |
computePhaseMap(List<Mat> patternImages,
Mat wrappedPhaseMap,
Mat shadowMask)
Compute a wrapped phase map from sinusoidal patterns.
|
void |
computePhaseMap(List<Mat> patternImages,
Mat wrappedPhaseMap,
Mat shadowMask,
Mat fundamental)
Compute a wrapped phase map from sinusoidal patterns.
|
static SinusoidalPattern |
create()
Constructor.
|
protected void |
finalize() |
void |
findProCamMatches(Mat projUnwrappedPhaseMap,
Mat camUnwrappedPhaseMap,
List<Mat> matches)
Find correspondences between the two devices thanks to unwrapped phase maps.
|
void |
unwrapPhaseMap(Mat wrappedPhaseMap,
Mat unwrappedPhaseMap,
Size camSize)
Unwrap the wrapped phase map to remove phase ambiguities.
|
void |
unwrapPhaseMap(Mat wrappedPhaseMap,
Mat unwrappedPhaseMap,
Size camSize,
Mat shadowMask)
Unwrap the wrapped phase map to remove phase ambiguities.
|
generate
clear, empty, getDefaultName, getNativeObjAddr, save
public static SinusoidalPattern __fromPtr__(long addr)
public static SinusoidalPattern create()
public void computeDataModulationTerm(List<Mat> patternImages, Mat dataModulationTerm, Mat shadowMask)
patternImages
- captured images with projected patterns.dataModulationTerm
- Mat where the data modulation term is saved.shadowMask
- Mask used to discard shadow regions.public void computePhaseMap(List<Mat> patternImages, Mat wrappedPhaseMap, Mat shadowMask, Mat fundamental)
patternImages
- Input data to compute the wrapped phase map.wrappedPhaseMap
- Wrapped phase map obtained through one of the three methods.shadowMask
- Mask used to discard shadow regions.fundamental
- Fundamental matrix used to compute epipolar lines and ease the matching step.public void computePhaseMap(List<Mat> patternImages, Mat wrappedPhaseMap, Mat shadowMask)
patternImages
- Input data to compute the wrapped phase map.wrappedPhaseMap
- Wrapped phase map obtained through one of the three methods.shadowMask
- Mask used to discard shadow regions.public void computePhaseMap(List<Mat> patternImages, Mat wrappedPhaseMap)
patternImages
- Input data to compute the wrapped phase map.wrappedPhaseMap
- Wrapped phase map obtained through one of the three methods.public void findProCamMatches(Mat projUnwrappedPhaseMap, Mat camUnwrappedPhaseMap, List<Mat> matches)
projUnwrappedPhaseMap
- Projector's unwrapped phase map.camUnwrappedPhaseMap
- Camera's unwrapped phase map.matches
- Images used to display correspondences map.public void unwrapPhaseMap(Mat wrappedPhaseMap, Mat unwrappedPhaseMap, Size camSize, Mat shadowMask)
wrappedPhaseMap
- The wrapped phase map computed from the pattern.unwrappedPhaseMap
- The unwrapped phase map used to find correspondences between the two devices.camSize
- Resolution of the camera.shadowMask
- Mask used to discard shadow regions.public void unwrapPhaseMap(Mat wrappedPhaseMap, Mat unwrappedPhaseMap, Size camSize)
wrappedPhaseMap
- The wrapped phase map computed from the pattern.unwrappedPhaseMap
- The unwrapped phase map used to find correspondences between the two devices.camSize
- Resolution of the camera.protected void finalize() throws Throwable
finalize
in class StructuredLightPattern
Throwable
Copyright © 2020. All rights reserved.