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>


Public Types | |
| typedef boost::shared_ptr < PointCloudImageExtractorFromRGBField < PointT > > | Ptr |
| typedef boost::shared_ptr < const PointCloudImageExtractorFromRGBField < PointT > > | ConstPtr |
Public Member Functions | |
| PointCloudImageExtractorFromRGBField () | |
| Constructor. | |
| virtual | ~PointCloudImageExtractorFromRGBField () |
| Destructor. | |
| virtual bool | extract (const PointCloud &cloud, pcl::PCLImage &img) const |
| Obtain the color image from the given cloud. | |
Image Extractor which uses the data present in the "rgb" or "rgba" fields to produce a color image with rgb8 encoding.
Definition at line 216 of file point_cloud_image_extractors.h.
| typedef boost::shared_ptr<const PointCloudImageExtractorFromRGBField<PointT> > pcl::io::PointCloudImageExtractorFromRGBField< PointT >::ConstPtr |
Reimplemented from pcl::io::PointCloudImageExtractor< PointT >.
Definition at line 222 of file point_cloud_image_extractors.h.
| typedef boost::shared_ptr<PointCloudImageExtractorFromRGBField<PointT> > pcl::io::PointCloudImageExtractorFromRGBField< PointT >::Ptr |
Reimplemented from pcl::io::PointCloudImageExtractor< PointT >.
Definition at line 221 of file point_cloud_image_extractors.h.
| pcl::io::PointCloudImageExtractorFromRGBField< PointT >::PointCloudImageExtractorFromRGBField | ( | ) | [inline] |
Constructor.
Definition at line 225 of file point_cloud_image_extractors.h.
| virtual pcl::io::PointCloudImageExtractorFromRGBField< PointT >::~PointCloudImageExtractorFromRGBField | ( | ) | [inline, virtual] |
Destructor.
Definition at line 228 of file point_cloud_image_extractors.h.
| bool pcl::io::PointCloudImageExtractorFromRGBField< PointT >::extract | ( | const PointCloud & | cloud, | |
| pcl::PCLImage & | img | |||
| ) | const [inline, virtual] |
Obtain the color image from the given cloud.
The cloud should contain either "rgb" or "rgba" field.
| [in] | cloud | organized point cloud to extract image from |
| [out] | image | the output image |
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< PointT >::height, pcl::PointCloud< PointT >::isOrganized(), pcl::PointCloud< PointT >::points, pcl::PCLImage::step, pcl::PCLImage::width, and pcl::PointCloud< PointT >::width.