Spec-Zone.ru › PointCloudLibrary

Базовый класс извлечения изображений для упорядоченных облаков точек. Подробнее...

#include <pcl/io/point_cloud_image_extractors.h>

Inheritance graph
[обозначения]

Открытые типы

using PointCloud = pcl::PointCloud< PointT >
using Ptr = shared_ptr< PointCloudImageExtractor< PointT > >
using ConstPtr = shared_ptr< const PointCloudImageExtractor< PointT > >

Открытые функции-члены

PointCloudImageExtractor ()=default
Конструктор. Подробнее...
virtual ~PointCloudImageExtractor ()=default
Деструктор. Подробнее...
bool extract (const PointCloud &cloud, pcl::PCLImage &image) const
Получить изображение из указанного облака. Подробнее...
void setPaintNaNsWithBlack (bool flag)
Установить флаг, определяющий, следует ли закрашивать черным пиксели изображения, соответствующие точкам NaN (бесконечным). Подробнее...

Защищенные функции-члены

virtual bool extractImpl (const PointCloud &cloud, pcl::PCLImage &image) const =0
Реализация функции extract(), которая должна быть реализована в производных классах. Подробнее...

Защищенные атрибуты

bool paint_nans_with_black_ {false}
Флаг, определяющий, следует ли закрашивать черным пиксели изображения, соответствующие точкам NaN (бесконечным). Подробнее...

Подробное описание

template<typename PointT>
class pcl::io::PointCloudImageExtractor< PointT >

Базовый класс извлечения изображений для упорядоченных облаков точек.

Это абстрактный класс, объявляющий интерфейс для извлечения изображений из упорядоченных облаков точек. Семейство его подклассов предоставляет функциональность для извлечения изображений из определенных полей.

В следующем фрагменте кода показано типичное использование подкласса PointCloudImageExtractor. Здесь данные извлекаются из поля "label" и сохраняются в файл изображения PNG.

// Source point cloud (needs to be filled with data of course)
pcl::PointCloud<pcl::PointXYZLabel> cloud;
// Target image
pcl::PCLImage image;
// Create PointCloudImageExtractor subclass that can handle "label" field
pcl::io::PointCloudImageExtractorFromLabelField<pcl::XYZLabel> pcie;
// Set it up if not happy with the defaults
pcie.setColorMode(pcie.COLORS_RGB_RANDOM);
// Try to extract an image
bool success = pcie.extract(cloud, image);
// Save to file if succeeded
if (success)
 pcl::io::saveImage ("filename.png", image);
pcl::PointCloudPointCloud represents the base class in PCL for storing collections of 3D points.Definition: point_cloud.h:173
pcl::PointCloud
PointCloud represents the base class in PCL for storing collections of 3D points.
Definition: point_cloud.h:173
pcl::io::PointCloudImageExtractorFromLabelFieldImage Extractor which uses the data present in the "label" field to produce either monochrome or RGB ...Definition: point_cloud_image_extractors.h:258
pcl::io::PointCloudImageExtractorFromLabelField
Image Extractor which uses the data present in the "label" field to produce either monochrome or RGB ...
Definition: point_cloud_image_extractors.h:258
pcl::io::PointCloudImageExtractorFromLabelField::COLORS_RGB_RANDOM@ COLORS_RGB_RANDOMRandomly generated RGB colors.Definition: point_cloud_image_extractors.h:272
pcl::io::PointCloudImageExtractorFromLabelField::COLORS_RGB_RANDOM
@ COLORS_RGB_RANDOM
Randomly generated RGB colors.
Definition: point_cloud_image_extractors.h:272
pcl::io::PointCloudImageExtractorFromLabelField::setColorModevoid setColorMode(const ColorMode color_mode)Set color mapping mode.Definition: point_cloud_image_extractors.h:289
pcl::io::PointCloudImageExtractorFromLabelField::setColorMode
void setColorMode(const ColorMode color_mode)
Set color mapping mode.
Definition: point_cloud_image_extractors.h:289
pcl::io::PointCloudImageExtractor::extractbool extract(const PointCloud &cloud, pcl::PCLImage &image) constObtain the image from the given cloud.Definition: point_cloud_image_extractors.hpp:51
pcl::io::PointCloudImageExtractor::extract
bool extract(const PointCloud &cloud, pcl::PCLImage &image) const
Obtain the image from the given cloud.
Definition: point_cloud_image_extractors.hpp:51
pcl::PCLImageDefinition: PCLImage.h:13
pcl::PCLImage
Definition: PCLImage.h:13
Автор
Sergey Alexandrov

Определение в строке 78 файла point_cloud_image_extractors.h.

Описание псевдонимов типов-членов

ConstPtr

template<typename PointT >
using pcl::io::PointCloudImageExtractor< PointT >::ConstPtr = shared_ptr<const PointCloudImageExtractor<PointT> >

Определение в строке 84 файла point_cloud_image_extractors.h.

PointCloud

template<typename PointT >
using pcl::io::PointCloudImageExtractor< PointT >::PointCloud = pcl::PointCloud<PointT>

Определение в строке 81 файла point_cloud_image_extractors.h.

Ptr

template<typename PointT >
using pcl::io::PointCloudImageExtractor< PointT >::Ptr = shared_ptr<PointCloudImageExtractor<PointT> >

Определение в строке 83 файла point_cloud_image_extractors.h.

Описание конструкторов и деструкторов

PointCloudImageExtractor()

template<typename PointT >
pcl::io::PointCloudImageExtractor< PointT >::PointCloudImageExtractor ( )
default

Конструктор.

~PointCloudImageExtractor()

template<typename PointT >
virtual pcl::io::PointCloudImageExtractor< PointT >::~PointCloudImageExtractor ( )
virtualdefault

Деструктор.

Описание функций-членов

extract()

template<typename PointT >
bool pcl::io::PointCloudImageExtractor< PointT >::extract ( const PointCloud & cloud,
pcl::PCLImage & image
) const

Получить изображение из указанного облака.

Параметры
[in] cloud организованное облако точек, из которого извлекается изображение
[out] image выходное изображение
Возвращает
true, если операция выполнена успешно, в противном случае — false

Определение в строке 51 файла point_cloud_image_extractors.hpp.

Ссылки: pcl::PCLImage::data, pcl::PCLImage::encoding, pcl::PointCloud< PointT >::height, pcl::isFinite(), pcl::PointCloud< PointT >::isOrganized(), pcl::PointCloud< PointT >::size() и pcl::PointCloud< PointT >::width.

extractImpl()

template<typename PointT >
virtual bool pcl::io::PointCloudImageExtractor< PointT >::extractImpl ( const PointCloud & cloud,
pcl::PCLImage & image
) const
protectedpure virtual

Реализация функции extract(), которую необходимо реализовать в производных классах.

Реализована в классах pcl::io::PointCloudImageExtractorFromLabelField< PointT >, pcl::io::PointCloudImageExtractorFromRGBField< PointT >, pcl::io::PointCloudImageExtractorFromNormalField< PointT > и pcl::io::PointCloudImageExtractorWithScaling< PointT >.

setPaintNaNsWithBlack()

template<typename PointT >
void pcl::io::PointCloudImageExtractor< PointT >::setPaintNaNsWithBlack ( bool flag )
inline

Установить флаг, определяющий, следует ли закрашивать чёрным пиксели изображения, соответствующие точкам NaN (бесконечным точкам).

Определение в строке 104 файла point_cloud_image_extractors.h.

Ссылки: pcl::io::PointCloudImageExtractor< PointT >::paint_nans_with_black_.

Документация данных-членов

paint_nans_with_black_

template<typename PointT >
bool pcl::io::PointCloudImageExtractor< PointT >::paint_nans_with_black_ {false}
protected

Флаг, определяющий, следует ли закрашивать чёрным пиксели изображения, соответствующие точкам NaN (бесконечным точкам).

Определение в строке 119 файла point_cloud_image_extractors.h.

Используется в pcl::io::PointCloudImageExtractor< PointT >::setPaintNaNsWithBlack().


Документация этого класса создана на основе следующих файлов:
  • pcl/io/point_cloud_image_extractors.h
  • pcl/io/impl/point_cloud_image_extractors.hpp

© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1io_1_1_point_cloud_image_extractor.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API