Stereo Matching abstract class for Grayscale images.
More...
#include <pcl/stereo/stereo_matching.h>
|
| GrayStereoMatching () |
|
| ~GrayStereoMatching () override |
|
void | compute (unsigned char *ref_img, unsigned char *trg_img, int width, int height) override |
| stereo processing, it computes a disparity map stored internally by the class More...
|
|
void | compute (pcl::PointCloud< pcl::RGB > &ref, pcl::PointCloud< pcl::RGB > &trg) override |
| stereo processing, it computes a disparity map stored internally by the class More...
|
|
| StereoMatching () |
|
virtual | ~StereoMatching () |
|
void | setMaxDisparity (int max_disp) |
| setter for number of disparity candidates (disparity range) More...
|
|
void | setXOffset (int x_off) |
| setter for horizontal offset, i.e. More...
|
|
void | setRatioFilter (int ratio_filter) |
| setter for the value of the ratio filter More...
|
|
void | setPeakFilter (int peak_filter) |
| setter for the value of the peak filter More...
|
|
void | setPreProcessing (bool is_pre_proc) |
| setter for the pre processing step More...
|
|
void | setLeftRightCheck (bool is_lr_check) |
| setter for the left-right consistency check stage, that eliminates inconsistent/wrong disparity values from the disparity map at approx. More...
|
|
void | setLeftRightCheckThreshold (int lr_check_th) |
| setter for the left-right consistency check threshold More...
|
|
void | medianFilter (int radius) |
| median filter applied on the previously computed disparity map More...
|
|
virtual bool | getPointCloud (float u_c, float v_c, float focal, float baseline, pcl::PointCloud< pcl::PointXYZ >::Ptr cloud) |
| computation of the 3D point cloud from the previously computed disparity map without color information More...
|
|
virtual bool | getPointCloud (float u_c, float v_c, float focal, float baseline, pcl::PointCloud< pcl::PointXYZRGB >::Ptr cloud, pcl::PointCloud< pcl::RGB >::Ptr texture) |
| computation of the 3D point cloud from the previously computed disparity map including color information More...
|
|
void | getVisualMap (pcl::PointCloud< pcl::RGB >::Ptr vMap) |
| computation of a pcl::RGB cloud with scaled disparity values it can be used to display a rescaled version of the disparity map by means of the pcl::ImageViewer invalid disparity values are shown in green More...
|
|
Stereo Matching abstract class for Grayscale images.
The class implements some functionalities of pcl::StereoMatching specific for grayscale stereo processing, such as image pre-processing and left
- Author
- Federico Tombari (feder.nosp@m.ico..nosp@m.tomba.nosp@m.ri@u.nosp@m.nibo..nosp@m.it)
Definition at line 371 of file stereo_matching.h.
◆ GrayStereoMatching()
pcl::GrayStereoMatching::GrayStereoMatching |
( |
| ) |
|
◆ ~GrayStereoMatching()
pcl::GrayStereoMatching::~GrayStereoMatching |
( |
| ) |
|
|
override |
◆ compute() [1/2]
stereo processing, it computes a disparity map stored internally by the class
- Parameters
-
[in] | ref | point cloud of pcl::RGB type containing the pixels of the reference image (left image) the pcl::RGB triplets are automatically converted to grayscale upon call of the method |
[in] | trg | point cloud of pcl::RGB type containing the pixels of the target image (right image) the pcl::RGB triplets are automatically converted to grayscale upon call of the method |
Implements pcl::StereoMatching.
◆ compute() [2/2]
void pcl::GrayStereoMatching::compute |
( |
unsigned char * |
ref_img, |
|
|
unsigned char * |
trg_img, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
overridevirtual |
stereo processing, it computes a disparity map stored internally by the class
- Parameters
-
[in] | ref_img | reference array of image pixels (left image), has to be grayscale single channel |
[in] | trg_img | target array of image pixels (right image), has to be grayscale single channel |
[in] | width | number of elements per row for both input arrays |
[in] | height | number of elements per column for both input arrays |
Implements pcl::StereoMatching.
◆ compute_impl()
void pcl::GrayStereoMatching::compute_impl |
( |
unsigned char * |
ref_img, |
|
|
unsigned char * |
trg_img |
|
) |
| |
|
overrideprotectedpure virtual |
◆ imgFlip()
void pcl::GrayStereoMatching::imgFlip |
( |
unsigned char *& |
img | ) |
|
|
overrideprotectedvirtual |
◆ preProcessing()
void pcl::GrayStereoMatching::preProcessing |
( |
unsigned char * |
img, |
|
|
unsigned char * |
pp_img |
|
) |
| |
|
overrideprotectedvirtual |
The documentation for this class was generated from the following file: