Point Cloud Library (PCL)
1.7.1
|
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 } |
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... | |
virtual bool | extract (const PointCloud &cloud, pcl::PCLImage &img) const |
Obtain the label image from the given cloud. More... | |
void | setColorMode (const ColorMode color_mode) |
Set color mapping mode. More... | |
![]() | |
PointCloudImageExtractor () | |
Constructor. More... | |
virtual | ~PointCloudImageExtractor () |
Destructor. 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.
In the monochrome case colors are shades of gray, in the RGB case the colors are generated randomly.
Definition at line 249 of file point_cloud_image_extractors.h.
typedef boost::shared_ptr<const PointCloudImageExtractorFromLabelField<PointT> > pcl::io::PointCloudImageExtractorFromLabelField< PointT >::ConstPtr |
Definition at line 255 of file point_cloud_image_extractors.h.
typedef boost::shared_ptr<PointCloudImageExtractorFromLabelField<PointT> > pcl::io::PointCloudImageExtractorFromLabelField< PointT >::Ptr |
Definition at line 254 of file point_cloud_image_extractors.h.
enum pcl::io::PointCloudImageExtractorFromLabelField::ColorMode |
Different modes for color mapping.
Enumerator | |
---|---|
COLORS_MONO | |
COLORS_RGB_RANDOM |
Definition at line 263 of file point_cloud_image_extractors.h.
|
inline |
Constructor.
Definition at line 270 of file point_cloud_image_extractors.h.
|
inlinevirtual |
Destructor.
Definition at line 276 of file point_cloud_image_extractors.h.
|
virtual |
Obtain the label image from the given cloud.
The cloud should contain "label" field.
[in] | cloud | organized point cloud to extract image from |
[out] | image | the output image |
Implements pcl::io::PointCloudImageExtractor< PointT >.
Definition at line 123 of file point_cloud_image_extractors.hpp.
References pcl::PCLImage::data, pcl::PCLImage::encoding, pcl::getFieldIndex(), pcl::PCLImage::height, pcl::PointCloud< T >::height, pcl::PointCloud< T >::isOrganized(), pcl::PointCloud< T >::points, pcl::PCLImage::step, pcl::PCLImage::width, and pcl::PointCloud< T >::width.
|
inline |
Set color mapping mode.
Definition at line 290 of file point_cloud_image_extractors.h.