Point Cloud Library (PCL)
1.7.2
|
Image Extractor which uses the data present in the "label" field to produce either monochrome or RGB image where different labels correspond to different colors. More...
#include <pcl/io/point_cloud_image_extractors.h>
Public Types | |
enum | ColorMode { COLORS_MONO, COLORS_RGB_RANDOM, COLORS_RGB_GLASBEY } |
Different modes for color mapping. More... | |
typedef boost::shared_ptr< PointCloudImageExtractorFromLabelField< PointT > > | Ptr |
typedef boost::shared_ptr< const PointCloudImageExtractorFromLabelField< PointT > > | ConstPtr |
![]() | |
typedef pcl::PointCloud< PointT > | PointCloud |
typedef boost::shared_ptr< PointCloudImageExtractor< PointT > > | Ptr |
typedef boost::shared_ptr< const PointCloudImageExtractor< PointT > > | ConstPtr |
Public Member Functions | |
PointCloudImageExtractorFromLabelField (const ColorMode color_mode=COLORS_MONO) | |
Constructor. More... | |
virtual | ~PointCloudImageExtractorFromLabelField () |
Destructor. More... | |
void | setColorMode (const ColorMode color_mode) |
Set color mapping mode. More... | |
![]() | |
PointCloudImageExtractor () | |
Constructor. More... | |
virtual | ~PointCloudImageExtractor () |
Destructor. More... | |
bool | extract (const PointCloud &cloud, pcl::PCLImage &image) const |
Obtain the image from the given cloud. More... | |
void | setPaintNaNsWithBlack (bool flag) |
Set a flag that controls if image pixels corresponding to NaN (infinite) points should be painted black. More... | |
Protected Member Functions | |
virtual bool | extractImpl (const PointCloud &cloud, pcl::PCLImage &img) const |
Implementation of the extract() function, has to be implemented in deriving classes. More... | |
Additional Inherited Members | |
![]() | |
bool | paint_nans_with_black_ |
A flag that controls if image pixels corresponding to NaN (infinite) points should be painted black. More... | |
Image Extractor which uses the data present in the "label" field to produce either monochrome or RGB image where different labels correspond to different colors.
See the documentation for ColorMode to learn about available coloring options.
Definition at line 259 of file point_cloud_image_extractors.h.
typedef boost::shared_ptr<const PointCloudImageExtractorFromLabelField<PointT> > pcl::io::PointCloudImageExtractorFromLabelField< PointT >::ConstPtr |
Definition at line 265 of file point_cloud_image_extractors.h.
typedef boost::shared_ptr<PointCloudImageExtractorFromLabelField<PointT> > pcl::io::PointCloudImageExtractorFromLabelField< PointT >::Ptr |
Definition at line 264 of file point_cloud_image_extractors.h.
|
inline |
Constructor.
Definition at line 281 of file point_cloud_image_extractors.h.
|
inlinevirtual |
Destructor.
Definition at line 287 of file point_cloud_image_extractors.h.
|
protectedvirtual |
Implementation of the extract() function, has to be implemented in deriving classes.
Implements pcl::io::PointCloudImageExtractor< PointT >.
Definition at line 401 of file point_cloud_image_extractors.hpp.
References pcl::PCLImage::data, pcl::PCLImage::encoding, pcl::getFieldIndex(), pcl::PCLImage::height, pcl::PointCloud< PointT >::height, pcl::PointCloud< PointT >::points, pcl::PCLImage::step, pcl::PCLImage::width, and pcl::PointCloud< PointT >::width.
|
inline |
Set color mapping mode.
Definition at line 291 of file point_cloud_image_extractors.h.