Point Cloud Library (PCL)  1.7.1
List of all members | Public Types | Public Member Functions
pcl::io::PointCloudImageExtractorFromRGBField< PointT > Class Template Reference

Image Extractor which uses the data present in the "rgb" or "rgba" fields to produce a color image with rgb8 encoding. More...

#include <pcl/io/point_cloud_image_extractors.h>

+ Inheritance diagram for pcl::io::PointCloudImageExtractorFromRGBField< PointT >:
+ Collaboration diagram for pcl::io::PointCloudImageExtractorFromRGBField< PointT >:

Public Types

typedef boost::shared_ptr
< PointCloudImageExtractorFromRGBField
< PointT > > 
Ptr
 
typedef boost::shared_ptr
< const
PointCloudImageExtractorFromRGBField
< PointT > > 
ConstPtr
 
- Public Types inherited from pcl::io::PointCloudImageExtractor< PointT >
typedef pcl::PointCloud< PointTPointCloud
 
typedef boost::shared_ptr
< PointCloudImageExtractor
< PointT > > 
Ptr
 
typedef boost::shared_ptr
< const
PointCloudImageExtractor
< PointT > > 
ConstPtr
 

Public Member Functions

 PointCloudImageExtractorFromRGBField ()
 Constructor. More...
 
virtual ~PointCloudImageExtractorFromRGBField ()
 Destructor. More...
 
virtual bool extract (const PointCloud &cloud, pcl::PCLImage &img) const
 Obtain the color image from the given cloud. More...
 
- Public Member Functions inherited from pcl::io::PointCloudImageExtractor< PointT >
 PointCloudImageExtractor ()
 Constructor. More...
 
virtual ~PointCloudImageExtractor ()
 Destructor. More...
 

Detailed Description

template<typename PointT>
class pcl::io::PointCloudImageExtractorFromRGBField< PointT >

Image Extractor which uses the data present in the "rgb" or "rgba" fields to produce a color image with rgb8 encoding.

Author
Sergey Alexandrov

Definition at line 216 of file point_cloud_image_extractors.h.

Member Typedef Documentation

template<typename PointT >
typedef boost::shared_ptr<const PointCloudImageExtractorFromRGBField<PointT> > pcl::io::PointCloudImageExtractorFromRGBField< PointT >::ConstPtr

Definition at line 222 of file point_cloud_image_extractors.h.

template<typename PointT >
typedef boost::shared_ptr<PointCloudImageExtractorFromRGBField<PointT> > pcl::io::PointCloudImageExtractorFromRGBField< PointT >::Ptr

Definition at line 221 of file point_cloud_image_extractors.h.

Constructor & Destructor Documentation

Constructor.

Definition at line 225 of file point_cloud_image_extractors.h.

template<typename PointT >
virtual pcl::io::PointCloudImageExtractorFromRGBField< PointT >::~PointCloudImageExtractorFromRGBField ( )
inlinevirtual

Destructor.

Definition at line 228 of file point_cloud_image_extractors.h.

Member Function Documentation

template<typename PointT >
bool pcl::io::PointCloudImageExtractorFromRGBField< PointT >::extract ( const PointCloud cloud,
pcl::PCLImage img 
) const
virtual

Obtain the color image from the given cloud.

The cloud should contain either "rgb" or "rgba" field.

Parameters
[in]cloudorganized point cloud to extract image from
[out]imagethe output image
Returns
true if the operation was successful, false otherwise

Implements pcl::io::PointCloudImageExtractor< PointT >.

Definition at line 88 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.


The documentation for this class was generated from the following files: