Point Cloud Library (PCL)
1.7.1
|
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 |
![]() | |
typedef pcl::PointCloud< PointT > | PointCloud |
typedef boost::shared_ptr < PointCloudImageExtractor < PointT > > | Ptr |
typedef boost::shared_ptr < const PointCloudImageExtractor < PointT > > | ConstPtr |
Public Member Functions | |
PointCloudImageExtractorWithScaling (const std::string &field_name, const ScalingMethod scaling_method) | |
Constructor. More... | |
PointCloudImageExtractorWithScaling (const std::string &field_name, const float scaling_factor) | |
Constructor. More... | |
virtual | ~PointCloudImageExtractorWithScaling () |
Destructor. More... | |
virtual bool | extract (const PointCloud &cloud, pcl::PCLImage &image) const |
Obtain the image from the given cloud. More... | |
void | setScalingMethod (const ScalingMethod scaling_method) |
Set scaling method. More... | |
void | setScalingFactor (const float scaling_factor) |
Set fixed scaling factor. More... | |
![]() | |
PointCloudImageExtractor () | |
Constructor. More... | |
virtual | ~PointCloudImageExtractor () |
Destructor. More... | |
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 |
Definition at line 114 of file point_cloud_image_extractors.h.
typedef boost::shared_ptr<PointCloudImageExtractorWithScaling<PointT> > pcl::io::PointCloudImageExtractorWithScaling< PointT >::Ptr |
Definition at line 113 of file point_cloud_image_extractors.h.
|
inline |
Constructor.
Definition at line 131 of file point_cloud_image_extractors.h.
|
inline |
Constructor.
Definition at line 139 of file point_cloud_image_extractors.h.
|
inlinevirtual |
Destructor.
Definition at line 147 of file point_cloud_image_extractors.h.
|
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::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.
|
inline |
Set fixed scaling factor.
Definition at line 166 of file point_cloud_image_extractors.h.
References pcl::io::PointCloudImageExtractorWithScaling< PointT >::scaling_factor_.
|
inline |
Set scaling method.
Definition at line 159 of file point_cloud_image_extractors.h.
References pcl::io::PointCloudImageExtractorWithScaling< PointT >::scaling_method_.
|
protected |
Definition at line 173 of file point_cloud_image_extractors.h.
|
protected |
Definition at line 175 of file point_cloud_image_extractors.h.
Referenced by pcl::io::PointCloudImageExtractorWithScaling< PointT >::setScalingFactor().
|
protected |
Definition at line 174 of file point_cloud_image_extractors.h.
Referenced by pcl::io::PointCloudImageExtractorWithScaling< PointT >::setScalingMethod().