@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::StereoSGBMPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounterMODE_HH, MODE_HH4, MODE_SGBM, MODE_SGBM_3WAYDISP_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, setUniquenessRatioasAlgorithm, asAlgorithm, getBlockSize, getDisp12MaxDiff, getMinDisparity, getNumDisparities, getSpeckleRange, getSpeckleWindowSize, setBlockSize, setDisp12MaxDiff, setMinDisparity, setNumDisparities, setSpeckleRange, setSpeckleWindowSizeclear, empty, getDefaultName, getPointer, position, read, save, save, write, write, writeaddress, 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 StereoSGM(Pointer p)
Pointer(Pointer).public StereoSGM(Algorithm pointer)
public void compute(@ByVal Mat left, @ByVal Mat right, @ByVal Mat disparity)
compute in class StereoMatcherleft - 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 StereoMatcherpublic 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 © 2025. All rights reserved.