@Namespace(value="dai") @NoOffset @Properties(inherit=depthai.class) public class StereoDepthConfig extends Buffer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
StereoDepthConfig()
Construct StereoDepthConfig message.
|
StereoDepthConfig(long size)
Native array allocator.
|
StereoDepthConfig(Pointer p)
Pointer cast constructor.
|
StereoDepthConfig(RawStereoDepthConfig ptr) |
| Modifier and Type | Method and Description |
|---|---|
RawStereoDepthConfig |
get()
Retrieve configuration data for StereoDepth.
|
short |
getBilateralFilterSigma()
Get sigma value for 5x5 bilateral filter
|
int |
getConfidenceThreshold()
Get confidence threshold for disparity calculation
|
RawStereoDepthConfig.AlgorithmControl.DepthUnit |
getDepthUnit()
Get depth unit of depth map.
|
int |
getLeftRightCheckThreshold()
Get threshold for left-right check combine
|
float |
getMaxDisparity()
Useful for normalization of the disparity map.
|
depthai.MedianFilter |
getMedianFilter()
Get median filter setting
|
StereoDepthConfig |
getPointer(long i) |
StereoDepthConfig |
position(long position) |
StereoDepthConfig |
set(RawStereoDepthConfig config)
Set explicit configuration.
|
StereoDepthConfig |
setBilateralFilterSigma(short sigma)
A larger value of the parameter means that farther colors within the pixel neighborhood will be mixed together,
resulting in larger areas of semi-equal color.
|
StereoDepthConfig |
setConfidenceThreshold(int confThr)
Confidence threshold for disparity calculation
|
StereoDepthConfig |
setDepthAlign(RawStereoDepthConfig.AlgorithmControl.DepthAlign align) |
StereoDepthConfig |
setDepthUnit(RawStereoDepthConfig.AlgorithmControl.DepthUnit depthUnit)
Set depth unit of depth map.
|
StereoDepthConfig |
setDisparityShift(int disparityShift)
Shift input frame by a number of pixels to increase minimum depth.
|
StereoDepthConfig |
setExtendedDisparity(boolean enable)
Disparity range increased from 95 to 190, combined from full resolution and downscaled images.
|
StereoDepthConfig |
setLeftRightCheck(boolean enable)
Computes and combines disparities in both L-R and R-L directions, and combine them.
|
StereoDepthConfig |
setLeftRightCheckThreshold(int threshold) |
StereoDepthConfig |
setMedianFilter(depthai.MedianFilter median) |
StereoDepthConfig |
setMedianFilter(int median) |
StereoDepthConfig |
setNumInvalidateEdgePixels(int numInvalidateEdgePixels)
Invalidate X amount of pixels at the edge of disparity frame.
|
StereoDepthConfig |
setSubpixel(boolean enable)
Computes disparity with sub-pixel interpolation (3 fractional bits by default).
|
StereoDepthConfig |
setSubpixelFractionalBits(int subpixelFractionalBits)
Number of fractional bits for subpixel mode.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic StereoDepthConfig(Pointer p)
Pointer(Pointer).public StereoDepthConfig(long size)
Pointer.position(long).public StereoDepthConfig()
public StereoDepthConfig(@SharedPtr RawStereoDepthConfig ptr)
public StereoDepthConfig position(long position)
public StereoDepthConfig getPointer(long i)
getPointer in class Buffer@ByRef public StereoDepthConfig setDepthAlign(RawStereoDepthConfig.AlgorithmControl.DepthAlign align)
align - Set the disparity/depth alignment: centered (between the 'left' and 'right' inputs),
or from the perspective of a rectified output stream@ByRef public StereoDepthConfig setConfidenceThreshold(int confThr)
confThr - Confidence threshold value 0..255public int getConfidenceThreshold()
@ByRef public StereoDepthConfig setMedianFilter(depthai.MedianFilter median)
median - Set kernel size for disparity/depth median filtering, or disable@ByRef public StereoDepthConfig setMedianFilter(@Cast(value="dai::MedianFilter") int median)
public depthai.MedianFilter getMedianFilter()
@ByRef public StereoDepthConfig setBilateralFilterSigma(@Cast(value="uint16_t") short sigma)
sigma - Set sigma value for 5x5 bilateral filter. 0..65535@Cast(value="uint16_t") public short getBilateralFilterSigma()
@ByRef public StereoDepthConfig setLeftRightCheckThreshold(int threshold)
threshold - Set threshold for left-right, right-left disparity map combine, 0..255public int getLeftRightCheckThreshold()
@ByRef public StereoDepthConfig setLeftRightCheck(@Cast(value="bool") boolean enable)
@ByRef public StereoDepthConfig setExtendedDisparity(@Cast(value="bool") boolean enable)
@ByRef public StereoDepthConfig setSubpixel(@Cast(value="bool") boolean enable)
@ByRef public StereoDepthConfig setSubpixelFractionalBits(int subpixelFractionalBits)
@ByRef public StereoDepthConfig setDepthUnit(RawStereoDepthConfig.AlgorithmControl.DepthUnit depthUnit)
@ByRef public StereoDepthConfig setDisparityShift(int disparityShift)
@ByRef public StereoDepthConfig setNumInvalidateEdgePixels(int numInvalidateEdgePixels)
public RawStereoDepthConfig.AlgorithmControl.DepthUnit getDepthUnit()
public float getMaxDisparity()
@ByRef public StereoDepthConfig set(@ByVal RawStereoDepthConfig config)
config - Explicit configuration@ByVal public RawStereoDepthConfig get()
Copyright © 2023. All rights reserved.