public class GrayCodePattern extends StructuredLightPattern
Modifier | Constructor and Description |
---|---|
protected |
GrayCodePattern(long addr) |
Modifier and Type | Method and Description |
---|---|
static GrayCodePattern |
__fromPtr__(long addr) |
static GrayCodePattern |
create(int width,
int height)
Constructor
|
protected void |
finalize() |
void |
getImagesForShadowMasks(Mat blackImage,
Mat whiteImage)
Generates the all-black and all-white images needed for shadowMasks computation.
|
long |
getNumberOfPatternImages()
Get the number of pattern images needed for the graycode pattern.
|
boolean |
getProjPixel(List<Mat> patternImages,
int x,
int y,
Point projPix)
For a (x,y) pixel of a camera returns the corresponding projector pixel.
|
void |
setBlackThreshold(long value)
Sets the value for black threshold, needed for decoding (shadowsmasks computation).
|
void |
setWhiteThreshold(long value)
Sets the value for white threshold, needed for decoding.
|
generate
clear, empty, getDefaultName, getNativeObjAddr, save
public static GrayCodePattern __fromPtr__(long addr)
public static GrayCodePattern create(int width, int height)
width
- automatically generatedheight
- automatically generatedpublic boolean getProjPixel(List<Mat> patternImages, int x, int y, Point projPix)
patternImages
- The pattern images acquired by the camera, stored in a grayscale vector < Mat >.x
- x coordinate of the image pixel.y
- y coordinate of the image pixel.projPix
- Projector's pixel corresponding to the camera's pixel: projPix.x and projPix.y are the image coordinates of the projector's pixel corresponding to the pixel being decoded in a camera.public long getNumberOfPatternImages()
public void getImagesForShadowMasks(Mat blackImage, Mat whiteImage)
blackImage
- The generated all-black CV_8U image, at projector's resolution.whiteImage
- The generated all-white CV_8U image, at projector's resolution.public void setBlackThreshold(long value)
value
- The desired black threshold value.public void setWhiteThreshold(long value)
value
- The desired white threshold value.protected void finalize() throws Throwable
finalize
in class StructuredLightPattern
Throwable
Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2