Class cv::cuda::StereoSGM#
The class implements the modified H. Hirschmuller algorithm [141]. Limitation and difference are as follows: View details
#include <opencv2/cudastereo.hpp>Collaboration diagram for cv::cuda::StereoSGM:
Public Member Functions#
Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Clears the algorithm state. |
|
|
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
|
|
|
Stores algorithm parameters in a file storage. |
|
|
Static Public Member Functions#
Static Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
|
Loads algorithm from the file. |
|
|
Loads algorithm from a String. |
|
Reads algorithm from the file node. |
Additional Inherited Members#
Protected Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Detailed Description#
The class implements the modified H. Hirschmuller algorithm HH08. Limitation and difference are as follows:
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 Spangenberg2013 is used for robustness.
See also
Member Function Documentation#
compute()#
void cv::cuda::StereoSGM::compute(
InputArray left,
InputArray right,
OutputArray disparity )
Computes disparity map for the specified stereo pair.
Parameters
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).
compute()#
void cv::cuda::StereoSGM::compute(
InputArray left,
InputArray right,
OutputArray disparity,
Stream & stream )
Computes disparity map with specified CUDA Stream.
See also
Source file#
The documentation for this class was generated from the following file:
opencv2/cudastereo.hpp