Spec-Zone.ru › PointCloudLibrary

Класс-экстрактор Image по упорядоченным облакам точек. Подробнее...

#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 ()
Конструктор. Подробнее...
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_
Флаг, определяющий, нужно ли окрашивать пиксели изображения, соответствующие точкам NaN (бесконечность), в чёрный цвет. Подробнее...

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

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

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

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

Следующий фрагмент кода демонстрирует типичное использование подкласса 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:260
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:260
pcl::io::PointCloudImageExtractorFromLabelField::COLORS_RGB_RANDOM@ COLORS_RGB_RANDOMRandomly generated RGB colors.Definition: point_cloud_image_extractors.h:274
pcl::io::PointCloudImageExtractorFromLabelField::COLORS_RGB_RANDOM
@ COLORS_RGB_RANDOM
Randomly generated RGB colors.
Definition: point_cloud_image_extractors.h:274
pcl::io::PointCloudImageExtractorFromLabelField::setColorModevoid setColorMode(const ColorMode color_mode)Set color mapping mode.Definition: point_cloud_image_extractors.h:291
pcl::io::PointCloudImageExtractorFromLabelField::setColorMode
void setColorMode(const ColorMode color_mode)
Set color mapping mode.
Definition: point_cloud_image_extractors.h:291
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.

Документация по typedef-членам

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 ( )
inline

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

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

~PointCloudImageExtractor()

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

Деструктор.

Документация по членам-функциям

extract()

template<typename PointT >
bool pcl::io::PointCloudImageExtractor< PointT >::extract ( const PointCloud & облако,
pcl::PCLImage & изображение
) const

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

Параметры
[in] облако упорядоченное облако точек для извлечения изображения
[out] изображение выходное изображение
Возвращает
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 & облако,
pcl::PCLImage & изображение
) 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 (бесконечность), в черный цвет.

Определение в строке 106 файла 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_
protected

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

Определение в строке 121 файла 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