@Namespace(value="cv::cuda") @Properties(inherit=opencv_cudastereo.class) public class StereoSGM extends StereoSGBM
- By default, the algorithm uses only 4 directions which are horizontal and vertical path instead of 8.
Set mode=StereoSGM::MODE_HH in createStereoSGM to run the full variant of the algorithm.
- Mutual Information cost function is not implemented.
Instead, Center-Symmetric Census Transform with 9 \times 7
window size from \cite Spangenberg2013
is used for robustness.
cv::StereoSGBM
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
MODE_HH, MODE_HH4, MODE_SGBM, MODE_SGBM_3WAY
DISP_SCALE, DISP_SHIFT
Constructor and Description |
---|
StereoSGM(Algorithm pointer)
Downcast constructor.
|
StereoSGM(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
compute_with_stream(GpuMat left,
GpuMat right,
GpuMat disparity,
Stream stream) |
void |
compute_with_stream(Mat left,
Mat right,
Mat disparity,
Stream stream)
\brief Computes disparity map with specified CUDA Stream
|
void |
compute_with_stream(UMat left,
UMat right,
UMat disparity,
Stream stream) |
void |
compute(GpuMat left,
GpuMat right,
GpuMat disparity) |
void |
compute(Mat left,
Mat right,
Mat disparity)
\brief Computes disparity map for the specified stereo pair
|
void |
compute(UMat left,
UMat right,
UMat disparity) |
create, create, getMode, getP1, getP2, getPreFilterCap, getUniquenessRatio, setMode, setP1, setP2, setPreFilterCap, setUniquenessRatio
asAlgorithm, asAlgorithm, getBlockSize, getDisp12MaxDiff, getMinDisparity, getNumDisparities, getSpeckleRange, getSpeckleWindowSize, setBlockSize, setDisp12MaxDiff, setMinDisparity, setNumDisparities, setSpeckleRange, setSpeckleWindowSize
clear, empty, getDefaultName, getPointer, position, read, save, save, write, write, write
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, zero
public StereoSGM(Pointer p)
Pointer(Pointer)
.public StereoSGM(Algorithm pointer)
public void compute(@ByVal Mat left, @ByVal Mat right, @ByVal Mat disparity)
compute
in class StereoMatcher
left
- Left 8-bit or 16-bit unsigned single-channel image.right
- Right image of the same size and the same type as the left one.disparity
- Output disparity map. It has the same size as the input images.
StereoSGM computes 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits).public void compute(@ByVal UMat left, @ByVal UMat right, @ByVal UMat disparity)
compute
in class StereoMatcher
public void compute(@ByVal GpuMat left, @ByVal GpuMat right, @ByVal GpuMat disparity)
compute
in class StereoMatcher
@Name(value="compute") public void compute_with_stream(@ByVal Mat left, @ByVal Mat right, @ByVal Mat disparity, @ByRef Stream stream)
compute
@Name(value="compute") public void compute_with_stream(@ByVal UMat left, @ByVal UMat right, @ByVal UMat disparity, @ByRef Stream stream)
Copyright © 2024. All rights reserved.