Point Cloud Library (PCL)
1.14.1-dev
|
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... | |
using | Ptr = shared_ptr< PointCloudImageExtractorWithScaling< PointT > > |
using | ConstPtr = shared_ptr< const PointCloudImageExtractorWithScaling< PointT > > |
Public Types inherited from pcl::io::PointCloudImageExtractor< PointT > | |
using | PointCloud = pcl::PointCloud< PointT > |
using | Ptr = shared_ptr< PointCloudImageExtractor< PointT > > |
using | ConstPtr = shared_ptr< const PointCloudImageExtractor< PointT > > |
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... | |
~PointCloudImageExtractorWithScaling () override=default | |
Destructor. More... | |
void | setScalingMethod (const ScalingMethod scaling_method) |
Set scaling method. More... | |
void | setScalingFactor (const float scaling_factor) |
Set fixed scaling factor. More... | |
Public Member Functions inherited from pcl::io::PointCloudImageExtractor< PointT > | |
PointCloudImageExtractor ()=default | |
Constructor. More... | |
virtual | ~PointCloudImageExtractor ()=default |
Destructor. More... | |
bool | extract (const PointCloud &cloud, pcl::PCLImage &image) const |
Obtain the image from the given cloud. More... | |
void | setPaintNaNsWithBlack (bool flag) |
Set a flag that controls if image pixels corresponding to NaN (infinite) points should be painted black. More... | |
Protected Member Functions | |
bool | extractImpl (const PointCloud &cloud, pcl::PCLImage &image) const override |
Implementation of the extract() function, has to be implemented in deriving classes. More... | |
Protected Attributes | |
std::string | field_name_ |
ScalingMethod | scaling_method_ |
float | scaling_factor_ |
Protected Attributes inherited from pcl::io::PointCloudImageExtractor< PointT > | |
bool | paint_nans_with_black_ {false} |
A flag that controls if image pixels corresponding to NaN (infinite) points should be painted black. More... | |
Image Extractor extension which provides functionality to apply scaling to the values extracted from a field.
Definition at line 129 of file point_cloud_image_extractors.h.
using pcl::io::PointCloudImageExtractorWithScaling< PointT >::ConstPtr = shared_ptr<const PointCloudImageExtractorWithScaling<PointT> > |
Definition at line 135 of file point_cloud_image_extractors.h.
using pcl::io::PointCloudImageExtractorWithScaling< PointT >::Ptr = shared_ptr<PointCloudImageExtractorWithScaling<PointT> > |
Definition at line 134 of file point_cloud_image_extractors.h.
enum pcl::io::PointCloudImageExtractorWithScaling::ScalingMethod |
Different scaling methods.
Enumerator | |
---|---|
SCALING_NO | |
SCALING_FULL_RANGE | |
SCALING_FIXED_FACTOR |
Definition at line 144 of file point_cloud_image_extractors.h.
|
inline |
Constructor.
Definition at line 152 of file point_cloud_image_extractors.h.
|
inline |
Constructor.
Definition at line 160 of file point_cloud_image_extractors.h.
|
overridedefault |
Destructor.
|
overrideprotectedvirtual |
Implementation of the extract() function, has to be implemented in deriving classes.
Implements pcl::io::PointCloudImageExtractor< PointT >.
Definition at line 245 of file point_cloud_image_extractors.hpp.
References pcl::PCLImage::data, pcl::PCLImage::encoding, pcl::PCLImage::height, pcl::PointCloud< PointT >::height, pcl::PointCloud< PointT >::size(), pcl::PCLImage::step, pcl::PCLImage::width, and pcl::PointCloud< PointT >::width.
|
inline |
Set fixed scaling factor.
Definition at line 179 of file point_cloud_image_extractors.h.
References pcl::io::PointCloudImageExtractorWithScaling< PointT >::scaling_factor_.
|
inline |
Set scaling method.
Definition at line 172 of file point_cloud_image_extractors.h.
References pcl::io::PointCloudImageExtractorWithScaling< PointT >::scaling_method_.
|
protected |
Definition at line 189 of file point_cloud_image_extractors.h.
|
protected |
Definition at line 191 of file point_cloud_image_extractors.h.
Referenced by pcl::io::PointCloudImageExtractorWithScaling< PointT >::setScalingFactor().
|
protected |
Definition at line 190 of file point_cloud_image_extractors.h.
Referenced by pcl::io::PointCloudImageExtractorWithScaling< PointT >::setScalingMethod().