Image Extractor which uses the data present in the "normal" field. More...
#include <pcl/io/point_cloud_image_extractors.h>


Public Types | |
| typedef boost::shared_ptr < PointCloudImageExtractorFromNormalField < PointT > > | Ptr |
| typedef boost::shared_ptr < const PointCloudImageExtractorFromNormalField < PointT > > | ConstPtr |
Public Member Functions | |
| PointCloudImageExtractorFromNormalField () | |
| Constructor. | |
| virtual | ~PointCloudImageExtractorFromNormalField () |
| 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 "normal" field.
Normal vector components (x, y, z) are mapped to color channels (r, g, b respectively).
Definition at line 185 of file point_cloud_image_extractors.h.
| typedef boost::shared_ptr<const PointCloudImageExtractorFromNormalField<PointT> > pcl::io::PointCloudImageExtractorFromNormalField< PointT >::ConstPtr |
Reimplemented from pcl::io::PointCloudImageExtractor< PointT >.
Definition at line 191 of file point_cloud_image_extractors.h.
| typedef boost::shared_ptr<PointCloudImageExtractorFromNormalField<PointT> > pcl::io::PointCloudImageExtractorFromNormalField< PointT >::Ptr |
Reimplemented from pcl::io::PointCloudImageExtractor< PointT >.
Definition at line 190 of file point_cloud_image_extractors.h.
| pcl::io::PointCloudImageExtractorFromNormalField< PointT >::PointCloudImageExtractorFromNormalField | ( | ) | [inline] |
Constructor.
Definition at line 194 of file point_cloud_image_extractors.h.
| virtual pcl::io::PointCloudImageExtractorFromNormalField< PointT >::~PointCloudImageExtractorFromNormalField | ( | ) | [inline, virtual] |
Destructor.
Definition at line 197 of file point_cloud_image_extractors.h.
| bool pcl::io::PointCloudImageExtractorFromNormalField< PointT >::extract | ( | const PointCloud & | cloud, | |
| pcl::PCLImage & | img | |||
| ) | const [inline, virtual] |
Obtain the color image from the given cloud.
The cloud should contain "normal" field.
| [in] | cloud | organized point cloud to extract image from |
| [out] | image | the output image |
Implements pcl::io::PointCloudImageExtractor< PointT >.
Definition at line 49 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.