Image Extractor extension which provides functionality to apply scaling to the values extracted from a field. More...
#include <pcl/io/point_cloud_image_extractors.h>


Public Types | |
| enum | ScalingMethod { SCALING_NO, SCALING_FULL_RANGE, SCALING_FIXED_FACTOR } |
Different scaling methods. More... | |
| typedef boost::shared_ptr < PointCloudImageExtractorWithScaling < PointT > > | Ptr |
| typedef boost::shared_ptr < const PointCloudImageExtractorWithScaling < PointT > > | ConstPtr |
Public Member Functions | |
| PointCloudImageExtractorWithScaling (const std::string &field_name, const ScalingMethod scaling_method) | |
| Constructor. | |
| PointCloudImageExtractorWithScaling (const std::string &field_name, const float scaling_factor) | |
| Constructor. | |
| virtual | ~PointCloudImageExtractorWithScaling () |
| Destructor. | |
| virtual bool | extract (const PointCloud &cloud, pcl::PCLImage &image) const |
| Obtain the image from the given cloud. | |
| void | setScalingMethod (const ScalingMethod scaling_method) |
| Set scaling method. | |
| void | setScalingFactor (const float scaling_factor) |
| Set fixed scaling factor. | |
Protected Attributes | |
| std::string | field_name_ |
| ScalingMethod | scaling_method_ |
| float | scaling_factor_ |
Image Extractor extension which provides functionality to apply scaling to the values extracted from a field.
Definition at line 108 of file point_cloud_image_extractors.h.
| typedef boost::shared_ptr<const PointCloudImageExtractorWithScaling<PointT> > pcl::io::PointCloudImageExtractorWithScaling< PointT >::ConstPtr |
Reimplemented from pcl::io::PointCloudImageExtractor< PointT >.
Reimplemented in pcl::io::PointCloudImageExtractorFromZField< PointT >, pcl::io::PointCloudImageExtractorFromCurvatureField< PointT >, and pcl::io::PointCloudImageExtractorFromIntensityField< PointT >.
Definition at line 114 of file point_cloud_image_extractors.h.
| typedef boost::shared_ptr<PointCloudImageExtractorWithScaling<PointT> > pcl::io::PointCloudImageExtractorWithScaling< PointT >::Ptr |
Reimplemented from pcl::io::PointCloudImageExtractor< PointT >.
Reimplemented in pcl::io::PointCloudImageExtractorFromZField< PointT >, pcl::io::PointCloudImageExtractorFromCurvatureField< PointT >, and pcl::io::PointCloudImageExtractorFromIntensityField< PointT >.
Definition at line 113 of file point_cloud_image_extractors.h.
| enum pcl::io::PointCloudImageExtractorWithScaling::ScalingMethod |
Different scaling methods.
Definition at line 123 of file point_cloud_image_extractors.h.
| pcl::io::PointCloudImageExtractorWithScaling< PointT >::PointCloudImageExtractorWithScaling | ( | const std::string & | field_name, | |
| const ScalingMethod | scaling_method | |||
| ) | [inline] |
Constructor.
Definition at line 131 of file point_cloud_image_extractors.h.
| pcl::io::PointCloudImageExtractorWithScaling< PointT >::PointCloudImageExtractorWithScaling | ( | const std::string & | field_name, | |
| const float | scaling_factor | |||
| ) | [inline] |
Constructor.
Definition at line 139 of file point_cloud_image_extractors.h.
| virtual pcl::io::PointCloudImageExtractorWithScaling< PointT >::~PointCloudImageExtractorWithScaling | ( | ) | [inline, virtual] |
Destructor.
Definition at line 147 of file point_cloud_image_extractors.h.
| bool pcl::io::PointCloudImageExtractorWithScaling< PointT >::extract | ( | const PointCloud & | cloud, | |
| pcl::PCLImage & | image | |||
| ) | const [inline, virtual] |
Obtain the image from the given cloud.
| [in] | cloud | organized point cloud to extract image from |
| [out] | image | the output image |
Implements pcl::io::PointCloudImageExtractor< PointT >.
Definition at line 188 of file point_cloud_image_extractors.hpp.
References pcl::PCLImage::data, pcl::PCLImage::encoding, pcl::io::PointCloudImageExtractorWithScaling< PointT >::field_name_, pcl::getFieldIndex(), pcl::PCLImage::height, pcl::PointCloud< PointT >::height, pcl::PointCloud< PointT >::isOrganized(), pcl::PointCloud< PointT >::points, pcl::io::PointCloudImageExtractorWithScaling< PointT >::scaling_factor_, pcl::io::PointCloudImageExtractorWithScaling< PointT >::SCALING_FIXED_FACTOR, pcl::io::PointCloudImageExtractorWithScaling< PointT >::SCALING_FULL_RANGE, pcl::io::PointCloudImageExtractorWithScaling< PointT >::scaling_method_, pcl::io::PointCloudImageExtractorWithScaling< PointT >::SCALING_NO, pcl::PCLImage::step, pcl::PCLImage::width, and pcl::PointCloud< PointT >::width.
| void pcl::io::PointCloudImageExtractorWithScaling< PointT >::setScalingFactor | ( | const float | scaling_factor | ) | [inline] |
Set fixed scaling factor.
Definition at line 166 of file point_cloud_image_extractors.h.
References pcl::io::PointCloudImageExtractorWithScaling< PointT >::scaling_factor_.
| void pcl::io::PointCloudImageExtractorWithScaling< PointT >::setScalingMethod | ( | const ScalingMethod | scaling_method | ) | [inline] |
Set scaling method.
Definition at line 159 of file point_cloud_image_extractors.h.
References pcl::io::PointCloudImageExtractorWithScaling< PointT >::scaling_method_.
std::string pcl::io::PointCloudImageExtractorWithScaling< PointT >::field_name_ [protected] |
Definition at line 173 of file point_cloud_image_extractors.h.
Referenced by pcl::io::PointCloudImageExtractorWithScaling< PointT >::extract().
float pcl::io::PointCloudImageExtractorWithScaling< PointT >::scaling_factor_ [protected] |
Definition at line 175 of file point_cloud_image_extractors.h.
Referenced by pcl::io::PointCloudImageExtractorWithScaling< PointT >::extract(), and pcl::io::PointCloudImageExtractorWithScaling< PointT >::setScalingFactor().
ScalingMethod pcl::io::PointCloudImageExtractorWithScaling< PointT >::scaling_method_ [protected] |
Definition at line 174 of file point_cloud_image_extractors.h.
Referenced by pcl::io::PointCloudImageExtractorWithScaling< PointT >::extract(), and pcl::io::PointCloudImageExtractorWithScaling< PointT >::setScalingMethod().