36 #ifndef PCL_DISPARITY_MAP_CONVERTER_H_
37 #define PCL_DISPARITY_MAP_CONVERTER_H_
42 #include <pcl/point_cloud.h>
43 #include <pcl/point_types.h>
76 template <
typename Po
intT>
186 loadDisparityMap (
const std::string &file_name,
const size_t width,
const size_t height);
202 const size_t width,
const size_t height);
214 compute (PointCloud &out_cloud);
254 #include <pcl/stereo/impl/disparity_map_converter.hpp>
256 #endif // PCL_DISPARITY_MAP_CONVERTER_H_
pcl::PointCloud< PointT > PointCloud
bool is_color_
Is color image is set.
boost::shared_ptr< PointCloud< PointT > > Ptr
void setFocalLength(const float focal_length)
Set focal length.
PointXYZ translateCoordinates(size_t row, size_t column, float disparity) const
Translate point from image coordinates and disparity to 3D-coordinates.
float getDisparityThresholdMin() const
Get min disparity threshold.
float getFocalLength() const
Get focal length.
bool loadDisparityMap(const std::string &file_name)
Load the disparity map.
This file defines compatibility wrappers for low level I/O functions.
void setDisparityMap(const std::vector< float > &disparity_map)
Set the disparity map.
virtual void compute(PointCloud &out_cloud)
Compute the output cloud.
DisparityMapConverter()
DisparityMapConverter constructor.
std::vector< float > getDisparityMap()
Get the disparity map.
float focal_length_
Focal length.
void setDisparityThresholdMax(const float disparity_threshold_max)
Set max disparity threshold.
float getDisparityThresholdMax() const
Get max disparity threshold.
pcl::PointCloud< pcl::RGB >::ConstPtr image_
Color image of the scene.
float getImageCenterX() const
Get x-coordinate of the image center.
boost::shared_ptr< const PointCloud< PointT > > ConstPtr
virtual ~DisparityMapConverter()
Empty destructor.
size_t disparity_map_width_
X-size of the disparity map.
void setDisparityThresholdMin(const float disparity_threshold_min)
Set min disparity threshold.
A point structure representing Euclidean xyz coordinates.
Compute point cloud from the disparity map.
PointCloud represents the base class in PCL for storing collections of 3D points. ...
float getBaseline() const
Get baseline.
float center_x_
X-coordinate of the image center.
void setBaseline(const float baseline)
Set baseline.
float getImageCenterY() const
Get y-coordinate of the image center.
void setImageCenterY(const float center_y)
Set y-coordinate of the image center.
void setImage(const pcl::PointCloud< pcl::RGB >::ConstPtr &image)
Set an image, that will be used for coloring of the output cloud.
void setImageCenterX(const float center_x)
Set x-coordinate of the image center.
std::vector< float > disparity_map_
Vector for the disparity map.
size_t disparity_map_height_
Y-size of the disparity map.
float disparity_threshold_min_
Thresholds of the disparity.
float disparity_threshold_max_
pcl::PointCloud< RGB >::Ptr getImage()
Get the image, that is used for coloring of the output cloud.
float center_y_
Y-coordinate of the image center.