|
Point Cloud Library (PCL)
1.15.1-dev
|
ColorCoding class More...
#include <pcl/compression/color_coding.h>
Inheritance diagram for pcl::octree::ColorCoding< PointT >:
Collaboration diagram for pcl::octree::ColorCoding< PointT >:Public Member Functions | |
| ColorCoding ()=default | |
| Constructor. More... | |
| virtual | ~ColorCoding ()=default |
| Empty class constructor. More... | |
| void | setBitDepth (unsigned char bitDepth_arg) |
| Define color bit depth of encoded color information. More... | |
| unsigned char | getBitDepth () |
| Retrieve color bit depth of encoded color information. More... | |
| void | setVoxelCount (unsigned int voxelCount_arg) |
| Set amount of voxels containing point color information and reserve memory. More... | |
| void | setPointCount (unsigned int pointCount_arg) |
| Set amount of points within point cloud to be encoded and reserve memory. More... | |
| void | initializeEncoding () |
| Initialize encoding of color information. More... | |
| void | initializeDecoding () |
| Initialize decoding of color information. More... | |
| std::vector< char > & | getAverageDataVector () |
| Get reference to vector containing averaged color data. More... | |
| std::vector< char > & | getDifferentialDataVector () |
| Get reference to vector containing differential color data. More... | |
| void | encodeAverageOfPoints (const Indices &indexVector_arg, unsigned char rgba_offset_arg, PointCloudConstPtr inputCloud_arg) |
| Encode averaged color information for a subset of points from point cloud. More... | |
| void | encodePoints (const Indices &indexVector_arg, unsigned char rgba_offset_arg, PointCloudConstPtr inputCloud_arg) |
| Encode color information of a subset of points from point cloud. More... | |
| void | decodePoints (PointCloudPtr outputCloud_arg, uindex_t beginIdx_arg, uindex_t endIdx_arg, unsigned char rgba_offset_arg) |
| Decode color information. More... | |
| void | setDefaultColor (PointCloudPtr outputCloud_arg, std::size_t beginIdx_arg, std::size_t endIdx_arg, unsigned char rgba_offset_arg) |
| Set default color to points. More... | |
Protected Attributes | |
| PointCloudPtr | output_ {nullptr} |
| Pointer to output point cloud dataset. More... | |
| std::vector< char > | pointAvgColorDataVector_ |
| Vector for storing average color information More... | |
| std::vector< char >::const_iterator | pointAvgColorDataVector_Iterator_ |
| Iterator on average color information vector. More... | |
| std::vector< char > | pointDiffColorDataVector_ |
| Vector for storing differential color information More... | |
| std::vector< char >::const_iterator | pointDiffColorDataVector_Iterator_ |
| Iterator on differential color information vector. More... | |
| unsigned char | colorBitReduction_ {0} |
| Amount of bits to be removed from color components before encoding. More... | |
Static Protected Attributes | |
| static const int | defaultColor_ |
ColorCoding class
Definition at line 56 of file color_coding.h.
|
default |
Constructor.
|
virtualdefault |
Empty class constructor.
|
inline |
Decode color information.
| outputCloud_arg | output point cloud |
| beginIdx_arg | index indicating first point to be assigned with color information |
| endIdx_arg | index indicating last point to be assigned with color information |
| rgba_offset_arg | offset to color information |
Definition at line 276 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::colorBitReduction_, pcl::octree::ColorCoding< PointT >::pointAvgColorDataVector_Iterator_, and pcl::octree::ColorCoding< PointT >::pointDiffColorDataVector_Iterator_.
|
inline |
Encode averaged color information for a subset of points from point cloud.
| indexVector_arg | indices defining a subset of points from points cloud |
| rgba_offset_arg | offset to color information |
| inputCloud_arg | input point cloud |
Definition at line 153 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::colorBitReduction_, and pcl::octree::ColorCoding< PointT >::pointAvgColorDataVector_.
|
inline |
Encode color information of a subset of points from point cloud.
| indexVector_arg | indices defining a subset of points from points cloud |
| rgba_offset_arg | offset to color information |
| inputCloud_arg | input point cloud |
Definition at line 199 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::colorBitReduction_, pcl::octree::ColorCoding< PointT >::pointAvgColorDataVector_, and pcl::octree::ColorCoding< PointT >::pointDiffColorDataVector_.
|
inline |
Get reference to vector containing averaged color data.
Definition at line 134 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::pointAvgColorDataVector_.
|
inline |
Retrieve color bit depth of encoded color information.
Definition at line 87 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::colorBitReduction_.
|
inline |
Get reference to vector containing differential color data.
Definition at line 142 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::pointDiffColorDataVector_.
|
inline |
Initialize decoding of color information.
Definition at line 124 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::pointAvgColorDataVector_, pcl::octree::ColorCoding< PointT >::pointAvgColorDataVector_Iterator_, pcl::octree::ColorCoding< PointT >::pointDiffColorDataVector_, and pcl::octree::ColorCoding< PointT >::pointDiffColorDataVector_Iterator_.
|
inline |
Initialize encoding of color information.
Definition at line 114 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::pointAvgColorDataVector_, and pcl::octree::ColorCoding< PointT >::pointDiffColorDataVector_.
|
inline |
Define color bit depth of encoded color information.
| bitDepth_arg | amounts of bits for representing one color component |
Definition at line 78 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::colorBitReduction_.
|
inline |
Set default color to points.
| outputCloud_arg | output point cloud |
| beginIdx_arg | index indicating first point to be assigned with color information |
| endIdx_arg | index indicating last point to be assigned with color information |
| rgba_offset_arg | offset to color information |
Definition at line 334 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::defaultColor_.
|
inline |
Set amount of points within point cloud to be encoded and reserve memory.
| pointCount_arg | amounts of points within point cloud |
Definition at line 106 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::pointDiffColorDataVector_.
|
inline |
Set amount of voxels containing point color information and reserve memory.
| voxelCount_arg | amounts of voxels |
Definition at line 96 of file color_coding.h.
References pcl::octree::ColorCoding< PointT >::pointAvgColorDataVector_.
|
protected |
Amount of bits to be removed from color components before encoding.
Definition at line 368 of file color_coding.h.
Referenced by pcl::octree::ColorCoding< PointT >::decodePoints(), pcl::octree::ColorCoding< PointT >::encodeAverageOfPoints(), pcl::octree::ColorCoding< PointT >::encodePoints(), pcl::octree::ColorCoding< PointT >::getBitDepth(), and pcl::octree::ColorCoding< PointT >::setBitDepth().
|
staticprotected |
Definition at line 371 of file color_coding.h.
Referenced by pcl::octree::ColorCoding< PointT >::setDefaultColor().
|
protected |
Pointer to output point cloud dataset.
Definition at line 353 of file color_coding.h.
|
protected |
Vector for storing average color information
Definition at line 356 of file color_coding.h.
Referenced by pcl::octree::ColorCoding< PointT >::encodeAverageOfPoints(), pcl::octree::ColorCoding< PointT >::encodePoints(), pcl::octree::ColorCoding< PointT >::getAverageDataVector(), pcl::octree::ColorCoding< PointT >::initializeDecoding(), pcl::octree::ColorCoding< PointT >::initializeEncoding(), and pcl::octree::ColorCoding< PointT >::setVoxelCount().
|
protected |
Iterator on average color information vector.
Definition at line 359 of file color_coding.h.
Referenced by pcl::octree::ColorCoding< PointT >::decodePoints(), and pcl::octree::ColorCoding< PointT >::initializeDecoding().
|
protected |
Vector for storing differential color information
Definition at line 362 of file color_coding.h.
Referenced by pcl::octree::ColorCoding< PointT >::encodePoints(), pcl::octree::ColorCoding< PointT >::getDifferentialDataVector(), pcl::octree::ColorCoding< PointT >::initializeDecoding(), pcl::octree::ColorCoding< PointT >::initializeEncoding(), and pcl::octree::ColorCoding< PointT >::setPointCount().
|
protected |
Iterator on differential color information vector.
Definition at line 365 of file color_coding.h.
Referenced by pcl::octree::ColorCoding< PointT >::decodePoints(), and pcl::octree::ColorCoding< PointT >::initializeDecoding().