@Namespace(value="dai::node") @NoOffset @Properties(inherit=depthai.class) public class StereoDepth extends Node
Node.Connection, Node.DatatypeHierarchy, Node.Input, Node.OutputPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
StereoDepth(PipelineImpl par,
long nodeId) |
StereoDepth(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Node.Output |
depth()
Outputs ImgFrame message that carries RAW16 encoded (0..65535) depth data in millimeters.
|
Node.Output |
disparity()
Outputs ImgFrame message that carries RAW8 / RAW16 encoded disparity data:
RAW8 encoded (0..95) for standard mode;
RAW8 encoded (0..190) for extended disparity mode;
RAW16 encoded (0..3040) for subpixel disparity mode (32 subpixel levels on top of standard mode).
|
float |
getMaxDisparity()
Useful for normalization of the disparity map.
|
BytePointer |
getName()
Retrieves nodes name
|
StereoDepthConfig |
initialConfig()
Initial config to use for StereoDepth.
|
Node.Input |
inputConfig()
Input StereoDepthConfig message with ability to modify parameters in runtime.
|
Node.Input |
left()
Input for left ImgFrame of left-right pair
Default queue is non-blocking with size 8
|
void |
loadCalibrationData(byte[] data)
Deprecated.
|
void |
loadCalibrationData(ByteBuffer data)
Deprecated.
|
void |
loadCalibrationData(BytePointer data)
Deprecated.
|
void |
loadCalibrationFile(BytePointer path)
Deprecated.
|
void |
loadCalibrationFile(String path)
Deprecated.
|
void |
loadMeshData(byte[] dataLeft,
byte[] dataRight) |
void |
loadMeshData(ByteBuffer dataLeft,
ByteBuffer dataRight) |
void |
loadMeshData(BytePointer dataLeft,
BytePointer dataRight)
Specify mesh calibration data for 'left' and 'right' inputs, as vectors of bytes.
|
void |
loadMeshFiles(BytePointer pathLeft,
BytePointer pathRight)
Specify local filesystem paths to the mesh calibration files for 'left' and 'right' inputs.
|
void |
loadMeshFiles(String pathLeft,
String pathRight) |
Node.Output |
rectifiedLeft()
Outputs ImgFrame message that carries RAW8 encoded (grayscale) rectified frame data.
|
Node.Output |
rectifiedRight()
Outputs ImgFrame message that carries RAW8 encoded (grayscale) rectified frame data.
|
Node.Input |
right()
Input for right ImgFrame of left-right pair
Default queue is non-blocking with size 8
|
void |
setConfidenceThreshold(int confThr)
Deprecated.
|
void |
setDepthAlign(depthai.CameraBoardSocket camera) |
void |
setDepthAlign(int camera) |
void |
setDepthAlign(StereoDepthProperties.DepthAlign align) |
void |
setEmptyCalibration()
Deprecated.
|
void |
setExtendedDisparity(boolean enable)
Disparity range increased from 0-95 to 0-190, combined from full resolution and downscaled images.
|
void |
setInputResolution(int width,
int height)
Specify input resolution size
Optional if MonoCamera exists, otherwise necessary
|
void |
setLeftRightCheck(boolean enable)
Computes and combines disparities in both L-R and R-L directions, and combine them.
|
void |
setMedianFilter(depthai.MedianFilter median)
Deprecated.
|
void |
setMedianFilter(int median)
Deprecated.
|
void |
setMeshStep(int width,
int height)
Set the distance between mesh points.
|
void |
setOutputDepth(boolean enable)
Deprecated.
|
void |
setOutputKeepAspectRatio(boolean keep)
Specifies whether the frames resized by
setOutputSize should preserve aspect ratio,
with potential cropping when enabled. |
void |
setOutputRectified(boolean enable)
Deprecated.
|
void |
setOutputSize(int width,
int height)
Specify disparity/depth output resolution size, implemented by scaling.
|
void |
setRectification(boolean enable)
Rectify input images or not.
|
void |
setRectifyEdgeFillColor(int color)
Fill color for missing data at frame edges
|
void |
setRectifyMirrorFrame(boolean enable)
Mirror rectified frames, only when LR-check mode is disabled.
|
void |
setSubpixel(boolean enable)
Computes disparity with sub-pixel interpolation (5 fractional bits).
|
Node.Output |
syncedLeft()
Passthrough ImgFrame message from 'left' Input.
|
Node.Output |
syncedRight()
Passthrough ImgFrame message from 'right' Input.
|
assetManager, clone, getAssets, getInputRefs, getInputs, getOutputRefs, getOutputs, getParentPipeline, getProperties, getRequiredOpenVINOVersion, id, inputs, outputsaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic StereoDepth(Pointer p)
Pointer(Pointer).public StereoDepth(@SharedPtr PipelineImpl par, @Cast(value="int64_t") long nodeId)
@StdString public BytePointer getName()
Node@MemberGetter @ByRef public StereoDepthConfig initialConfig()
@MemberGetter @ByRef public Node.Input inputConfig()
@MemberGetter @ByRef public Node.Input left()
@MemberGetter @ByRef public Node.Input right()
@MemberGetter @ByRef public Node.Output depth()
@MemberGetter @ByRef public Node.Output disparity()
@MemberGetter @ByRef public Node.Output syncedLeft()
@MemberGetter @ByRef public Node.Output syncedRight()
@MemberGetter @ByRef public Node.Output rectifiedLeft()
@MemberGetter @ByRef public Node.Output rectifiedRight()
@Deprecated public void loadCalibrationFile(@StdString BytePointer path)
path - Path to calibration file. If empty use EEPROM@Deprecated public void loadCalibrationFile(@StdString String path)
@Deprecated public void loadCalibrationData(@Cast(value="std::uint8_t*") @StdVector BytePointer data)
path - Calibration data. If empty use EEPROM@Deprecated public void loadCalibrationData(@Cast(value="std::uint8_t*") @StdVector ByteBuffer data)
@Deprecated public void loadCalibrationData(@Cast(value="std::uint8_t*") @StdVector byte[] data)
@Deprecated public void setEmptyCalibration()
public void loadMeshFiles(@StdString BytePointer pathLeft, @StdString BytePointer pathRight)
setMeshStep.
With a 1280x800 resolution and the default (16,16) step, the required mesh size is:
width: 1280 / 16 + 1 = 81
height: 800 / 16 + 1 = 51public void loadMeshFiles(@StdString String pathLeft, @StdString String pathRight)
public void loadMeshData(@Cast(value="std::uint8_t*") @StdVector BytePointer dataLeft, @Cast(value="std::uint8_t*") @StdVector BytePointer dataRight)
loadMeshFiles for the expected data formatpublic void loadMeshData(@Cast(value="std::uint8_t*") @StdVector ByteBuffer dataLeft, @Cast(value="std::uint8_t*") @StdVector ByteBuffer dataRight)
public void loadMeshData(@Cast(value="std::uint8_t*") @StdVector byte[] dataLeft, @Cast(value="std::uint8_t*") @StdVector byte[] dataRight)
public void setMeshStep(int width,
int height)
public void setInputResolution(int width,
int height)
public void setOutputSize(int width,
int height)
public void setOutputKeepAspectRatio(@Cast(value="bool") boolean keep)
setOutputSize should preserve aspect ratio,
with potential cropping when enabled. Default true@Deprecated public void setMedianFilter(depthai.MedianFilter median)
median - Set kernel size for disparity/depth median filtering, or disable@Deprecated public void setMedianFilter(@Cast(value="dai::MedianFilter") int median)
public void setDepthAlign(@ByVal StereoDepthProperties.DepthAlign align)
align - Set the disparity/depth alignment: centered (between the 'left' and 'right' inputs),
or from the perspective of a rectified output streampublic void setDepthAlign(depthai.CameraBoardSocket camera)
camera - Set the camera from whose perspective the disparity/depth will be aligned@Deprecated public void setConfidenceThreshold(int confThr)
confThr - Confidence threshold value 0..255public void setRectification(@Cast(value="bool") boolean enable)
public void setLeftRightCheck(@Cast(value="bool") boolean enable)
public void setSubpixel(@Cast(value="bool") boolean enable)
public void setExtendedDisparity(@Cast(value="bool") boolean enable)
public void setRectifyEdgeFillColor(int color)
color - Grayscale 0..255, or -1 to replicate pixelspublic void setRectifyMirrorFrame(@Cast(value="bool") boolean enable)
true.
The mirroring is required to have a normal non-mirrored disparity/depth output.
A side effect of this option is disparity alignment to the perspective of left or right input:
false: mapped to left and mirrored, true: mapped to right.
With LR-check enabled, this option is ignored, none of the outputs are mirrored,
and disparity is mapped to right.enable - True for normal disparity/depth, otherwise mirrored@Deprecated public void setOutputRectified(@Cast(value="bool") boolean enable)
@Deprecated public void setOutputDepth(@Cast(value="bool") boolean enable)
public float getMaxDisparity()
Copyright © 2021. All rights reserved.