|
RTAB-Map 0.23.10
Real-Time Appearance-Based Mapping
|
Abstract base class for dense stereo matching algorithms. More...
#include <StereoDense.h>

Public Types | |
| enum | Type { kTypeBM = 0 , kTypeSGBM = 1 } |
| Enumeration of available stereo matching algorithm types. More... | |
Public Member Functions | |
| virtual | ~StereoDense () |
| Virtual destructor. | |
| virtual void | parseParameters (const ParametersMap ¶meters) |
| Parse parameters from a parameters map. | |
| virtual cv::Mat | computeDisparity (const cv::Mat &leftImage, const cv::Mat &rightImage) const =0 |
| Compute disparity map from stereo image pair. | |
Static Public Member Functions | |
| static StereoDense * | create (const ParametersMap ¶meters) |
| Factory method to create a StereoDense instance from parameters. | |
| static StereoDense * | create (StereoDense::Type type, const ParametersMap ¶meters=ParametersMap()) |
| Factory method to create a StereoDense instance of a specific type. | |
Protected Member Functions | |
| StereoDense (const ParametersMap ¶meters=ParametersMap()) | |
| Protected constructor. | |
Abstract base class for dense stereo matching algorithms.
This class provides the interface for dense stereo matching algorithms that compute disparity maps from stereo image pairs. It uses a factory pattern to create specific implementations (Block Matching or Semi-Global Block Matching).
The disparity map is a 16-bit signed integer image (CV_16SC1) where each pixel value represents the horizontal displacement between corresponding pixels in the left and right stereo images. Higher disparity values indicate closer objects.
Definition at line 53 of file StereoDense.h.
Enumeration of available stereo matching algorithm types.
| Enumerator | |
|---|---|
| kTypeBM | Block Matching algorithm (faster, less accurate) |
| kTypeSGBM | Semi-Global Block Matching algorithm (slower, more accurate) |
Definition at line 59 of file StereoDense.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 93 of file StereoDense.h.
|
inlineprotected |
Protected constructor.
| parameters | Optional parameters map for initialization |
Definition at line 129 of file StereoDense.h.
|
static |
Factory method to create a StereoDense instance from parameters.
Creates a StereoDense instance based on the stereo dense strategy parameter in the provided parameters map. The strategy is determined by the Parameters::kStereoDenseStrategy() parameter.
| parameters | Parameters map containing configuration values |
|
static |
Factory method to create a StereoDense instance of a specific type.
Creates a StereoDense instance of the specified type with the given parameters.
| type | The type of stereo matching algorithm to create |
| parameters | Optional parameters map containing configuration values |
|
inlinevirtual |
Parse parameters from a parameters map.
Updates the algorithm's configuration based on the provided parameters map. Derived classes should override this method to parse their specific parameters.
| parameters | Parameters map containing configuration values |
Reimplemented in rtabmap::StereoBM, and rtabmap::StereoSGBM.
Definition at line 103 of file StereoDense.h.
|
pure virtual |
Compute disparity map from stereo image pair.
Computes a disparity map from the given left and right stereo images. The images must have the same size and be either grayscale (CV_8UC1) or color (CV_8UC3). Color images are automatically converted to grayscale.
| leftImage | Left stereo image (CV_8UC1 or CV_8UC3) |
| rightImage | Right stereo image (CV_8UC1 or CV_8UC3), must have same size as leftImage |
Implemented in rtabmap::StereoBM, and rtabmap::StereoSGBM.