|
RTAB-Map 0.23.10
Real-Time Appearance-Based Mapping
|
Sparse stereo matching using block matching. More...
#include <Stereo.h>

Public Member Functions | |
| Stereo (const ParametersMap ¶meters=ParametersMap()) | |
| Constructor. | |
| virtual | ~Stereo () |
| Virtual destructor. | |
| virtual void | parseParameters (const ParametersMap ¶meters) |
| Parse parameters from a parameters map. | |
| virtual std::vector< cv::Point2f > | computeCorrespondences (const cv::Mat &leftImage, const cv::Mat &rightImage, const std::vector< cv::Point2f > &leftCorners, std::vector< unsigned char > &status) const |
| Compute stereo correspondences using block matching. | |
| cv::Size | winSize () const |
| Get the search window size. | |
| int | iterations () const |
| Get the number of iterations. | |
| int | maxLevel () const |
| Get the maximum pyramid level. | |
| float | minDisparity () const |
| Get the minimum disparity value. | |
| float | maxDisparity () const |
| Get the maximum disparity value. | |
| bool | winSSD () const |
| Check if SSD (Sum of Squared Differences) is used. | |
| virtual bool | isGpuEnabled () const |
| Check if GPU acceleration is enabled. | |
Static Public Member Functions | |
| static Stereo * | create (const ParametersMap ¶meters=ParametersMap()) |
| Factory method to create a Stereo instance. | |
Sparse stereo matching using block matching.
This class implements sparse stereo matching to find corresponding feature points between stereo image pairs using block matching with a search window. Unlike dense stereo matching, this class works with sparse feature points rather than computing disparity for every pixel.
The algorithm uses a pyramidal approach for efficiency, searching for correspondences within a specified disparity range using either SAD (Sum of Absolute Differences) or SSD (Sum of Squared Differences) as the matching cost.
| rtabmap::Stereo::Stereo | ( | const ParametersMap & | parameters = ParametersMap() | ) |
Constructor.
Initializes a Stereo instance with default parameter values and then parses the provided parameters map to override defaults.
| parameters | Optional parameters map containing configuration values. If empty, default values are used. |
|
inlinevirtual |
|
static |
Factory method to create a Stereo instance.
Creates a Stereo instance based on the stereo optical flow parameter in the provided parameters map. If optical flow is enabled, creates a StereoOpticalFlow instance; otherwise, creates a standard Stereo instance.
| parameters | Parameters map containing configuration values. The Parameters::kStereoOpticalFlow() parameter determines which implementation to create. |
|
virtual |
Parse parameters from a parameters map.
Updates the algorithm's configuration based on the provided parameters map. Supported parameters:
| parameters | Parameters map containing configuration values |
Reimplemented in rtabmap::StereoOpticalFlow.
|
virtual |
Compute stereo correspondences using block matching.
Finds corresponding points in the right stereo image for the given points in the left stereo image using block matching with a search window. The algorithm uses a pyramidal approach for efficiency.
| leftImage | Left stereo image (must be CV_8UC1 grayscale) |
| rightImage | Right stereo image (must be CV_8UC1 grayscale) |
| leftCorners | Input vector of feature points in the left image |
| status | Output vector indicating which correspondences are valid (1) or invalid (0). The size matches leftCorners.size(). |
Reimplemented in rtabmap::StereoOpticalFlow.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Check if GPU acceleration is enabled.
Reimplemented in rtabmap::StereoOpticalFlow.