#include <processor.h>
|
enum | {
LEFT_MONO = 1 << 0,
LEFT_RECT = 1 << 1,
LEFT_COLOR = 1 << 2,
LEFT_RECT_COLOR = 1 << 3,
RIGHT_MONO = 1 << 4,
RIGHT_RECT = 1 << 5,
RIGHT_COLOR = 1 << 6,
RIGHT_RECT_COLOR = 1 << 7,
DISPARITY = 1 << 8,
POINT_CLOUD = 1 << 9,
POINT_CLOUD2 = 1 << 10,
LEFT_ALL = LEFT_MONO | LEFT_RECT | LEFT_COLOR | LEFT_RECT_COLOR,
RIGHT_ALL = RIGHT_MONO | RIGHT_RECT | RIGHT_COLOR | RIGHT_RECT_COLOR,
STEREO_ALL = DISPARITY | POINT_CLOUD | POINT_CLOUD2,
ALL = LEFT_ALL | RIGHT_ALL | STEREO_ALL
} |
|
enum | StereoType { BM,
SGBM
} |
|
|
int | getCorrelationWindowSize () const |
|
int | getDisp12MaxDiff () const |
|
int | getDisparityRange () const |
|
int | getInterpolation () const |
|
int | getMinDisparity () const |
|
int | getP1 () const |
|
int | getP2 () const |
|
int | getPreFilterCap () const |
|
int | getPreFilterSize () const |
|
int | getSgbmMode () const |
|
int | getSpeckleRange () const |
|
int | getSpeckleSize () const |
|
StereoType | getStereoType () const |
|
int | getTextureThreshold () const |
|
float | getUniquenessRatio () const |
|
bool | process (const sensor_msgs::ImageConstPtr &left_raw, const sensor_msgs::ImageConstPtr &right_raw, const image_geometry::StereoCameraModel &model, StereoImageSet &output, int flags) const |
|
void | processDisparity (const cv::Mat &left_rect, const cv::Mat &right_rect, const image_geometry::StereoCameraModel &model, stereo_msgs::DisparityImage &disparity) const |
|
void | processPoints (const stereo_msgs::DisparityImage &disparity, const cv::Mat &color, const std::string &encoding, const image_geometry::StereoCameraModel &model, sensor_msgs::PointCloud &points) const |
|
void | processPoints2 (const stereo_msgs::DisparityImage &disparity, const cv::Mat &color, const std::string &encoding, const image_geometry::StereoCameraModel &model, sensor_msgs::PointCloud2 &points) const |
|
void | setCorrelationWindowSize (int size) |
|
void | setDisp12MaxDiff (int disp12MaxDiff) |
|
void | setDisparityRange (int range) |
|
void | setInterpolation (int interp) |
|
void | setMinDisparity (int min_d) |
|
void | setP1 (int P1) |
|
void | setP2 (int P2) |
|
void | setPreFilterCap (int cap) |
|
void | setPreFilterSize (int size) |
|
void | setSgbmMode (int fullDP) |
|
void | setSpeckleRange (int range) |
|
void | setSpeckleSize (int size) |
|
void | setStereoType (StereoType type) |
|
void | setTextureThreshold (int threshold) |
|
void | setUniquenessRatio (float ratio) |
|
| StereoProcessor () |
|
Definition at line 87 of file processor.h.
◆ anonymous enum
Enumerator |
---|
LEFT_MONO | |
LEFT_RECT | |
LEFT_COLOR | |
LEFT_RECT_COLOR | |
RIGHT_MONO | |
RIGHT_RECT | |
RIGHT_COLOR | |
RIGHT_RECT_COLOR | |
DISPARITY | |
POINT_CLOUD | |
POINT_CLOUD2 | |
LEFT_ALL | |
RIGHT_ALL | |
STEREO_ALL | |
ALL | |
Definition at line 108 of file processor.h.
◆ StereoType
◆ StereoProcessor()
stereo_image_proc::StereoProcessor::StereoProcessor |
( |
| ) |
|
|
inline |
◆ getCorrelationWindowSize()
int stereo_image_proc::StereoProcessor::getCorrelationWindowSize |
( |
| ) |
const |
◆ getDisp12MaxDiff()
int stereo_image_proc::StereoProcessor::getDisp12MaxDiff |
( |
| ) |
const |
◆ getDisparityRange()
int stereo_image_proc::StereoProcessor::getDisparityRange |
( |
| ) |
const |
◆ getInterpolation()
int stereo_image_proc::StereoProcessor::getInterpolation |
( |
| ) |
const |
|
inline |
◆ getMinDisparity()
int stereo_image_proc::StereoProcessor::getMinDisparity |
( |
| ) |
const |
◆ getP1()
int stereo_image_proc::StereoProcessor::getP1 |
( |
| ) |
const |
◆ getP2()
int stereo_image_proc::StereoProcessor::getP2 |
( |
| ) |
const |
◆ getPreFilterCap()
int stereo_image_proc::StereoProcessor::getPreFilterCap |
( |
| ) |
const |
◆ getPreFilterSize()
int stereo_image_proc::StereoProcessor::getPreFilterSize |
( |
| ) |
const |
◆ getSgbmMode()
int stereo_image_proc::StereoProcessor::getSgbmMode |
( |
| ) |
const |
◆ getSpeckleRange()
int stereo_image_proc::StereoProcessor::getSpeckleRange |
( |
| ) |
const |
◆ getSpeckleSize()
int stereo_image_proc::StereoProcessor::getSpeckleSize |
( |
| ) |
const |
◆ getStereoType()
StereoType stereo_image_proc::StereoProcessor::getStereoType |
( |
| ) |
const |
|
inline |
◆ getTextureThreshold()
int stereo_image_proc::StereoProcessor::getTextureThreshold |
( |
| ) |
const |
◆ getUniquenessRatio()
float stereo_image_proc::StereoProcessor::getUniquenessRatio |
( |
| ) |
const |
◆ process()
◆ processDisparity()
void stereo_image_proc::StereoProcessor::processDisparity |
( |
const cv::Mat & |
left_rect, |
|
|
const cv::Mat & |
right_rect, |
|
|
const image_geometry::StereoCameraModel & |
model, |
|
|
stereo_msgs::DisparityImage & |
disparity |
|
) |
| const |
◆ processPoints()
void stereo_image_proc::StereoProcessor::processPoints |
( |
const stereo_msgs::DisparityImage & |
disparity, |
|
|
const cv::Mat & |
color, |
|
|
const std::string & |
encoding, |
|
|
const image_geometry::StereoCameraModel & |
model, |
|
|
sensor_msgs::PointCloud & |
points |
|
) |
| const |
◆ processPoints2()
void stereo_image_proc::StereoProcessor::processPoints2 |
( |
const stereo_msgs::DisparityImage & |
disparity, |
|
|
const cv::Mat & |
color, |
|
|
const std::string & |
encoding, |
|
|
const image_geometry::StereoCameraModel & |
model, |
|
|
sensor_msgs::PointCloud2 & |
points |
|
) |
| const |
◆ setCorrelationWindowSize()
void stereo_image_proc::StereoProcessor::setCorrelationWindowSize |
( |
int |
size | ) |
|
◆ setDisp12MaxDiff()
void stereo_image_proc::StereoProcessor::setDisp12MaxDiff |
( |
int |
disp12MaxDiff | ) |
|
◆ setDisparityRange()
void stereo_image_proc::StereoProcessor::setDisparityRange |
( |
int |
range | ) |
|
◆ setInterpolation()
void stereo_image_proc::StereoProcessor::setInterpolation |
( |
int |
interp | ) |
|
|
inline |
◆ setMinDisparity()
void stereo_image_proc::StereoProcessor::setMinDisparity |
( |
int |
min_d | ) |
|
◆ setP1()
void stereo_image_proc::StereoProcessor::setP1 |
( |
int |
P1 | ) |
|
◆ setP2()
void stereo_image_proc::StereoProcessor::setP2 |
( |
int |
P2 | ) |
|
◆ setPreFilterCap()
void stereo_image_proc::StereoProcessor::setPreFilterCap |
( |
int |
cap | ) |
|
◆ setPreFilterSize()
void stereo_image_proc::StereoProcessor::setPreFilterSize |
( |
int |
size | ) |
|
◆ setSgbmMode()
void stereo_image_proc::StereoProcessor::setSgbmMode |
( |
int |
fullDP | ) |
|
◆ setSpeckleRange()
void stereo_image_proc::StereoProcessor::setSpeckleRange |
( |
int |
range | ) |
|
◆ setSpeckleSize()
void stereo_image_proc::StereoProcessor::setSpeckleSize |
( |
int |
size | ) |
|
◆ setStereoType()
void stereo_image_proc::StereoProcessor::setStereoType |
( |
StereoType |
type | ) |
|
|
inline |
◆ setTextureThreshold()
void stereo_image_proc::StereoProcessor::setTextureThreshold |
( |
int |
threshold | ) |
|
◆ setUniquenessRatio()
void stereo_image_proc::StereoProcessor::setUniquenessRatio |
( |
float |
ratio | ) |
|
◆ block_matcher_
cv::StereoBM stereo_image_proc::StereoProcessor::block_matcher_ |
|
mutableprivate |
◆ current_stereo_algorithm_
StereoType stereo_image_proc::StereoProcessor::current_stereo_algorithm_ |
|
private |
◆ dense_points_
cv::Mat_<cv::Vec3f> stereo_image_proc::StereoProcessor::dense_points_ |
|
mutableprivate |
◆ disparity16_
cv::Mat_<int16_t> stereo_image_proc::StereoProcessor::disparity16_ |
|
mutableprivate |
◆ mono_processor_
◆ sg_block_matcher_
cv::StereoSGBM stereo_image_proc::StereoProcessor::sg_block_matcher_ |
|
mutableprivate |
The documentation for this class was generated from the following files: