CGAL 5.4.4 - Classification
|
#include <CGAL/Classification/Feature/Color_channel.h>
CGAL::Classification::Feature_base.
Feature based on HSV colorimetric information.
If the input point cloud has colorimetric information, it can be used for classification purposes.
The HSV channels are defined this way:
Its default name is "color_hue", "color_saturation" or "color_value", depending on which channel is chosen in the constructor.
GeomTraits | model of CGAL Kernel. |
PointRange | model of ConstRange . Its iterator type is RandomAccessIterator and its value type is the key type of ColorMap . |
ColorMap | model of ReadablePropertyMap whose key type is the value type of the iterator of PointRange and value type is CGAL::IO::Color . |
Public Types | |
enum | Channel { HUE = 0, SATURATION = 1, VALUE = 2 } |
Selected channel. More... | |
Public Member Functions | |
Color_channel (const PointRange &input, ColorMap color_map, Channel channel) | |
constructs a feature based on the given color channel. More... | |
Public Member Functions inherited from CGAL::Classification::Feature_base | |
const std::string & | name () const |
returns the name of the feature (initialized to abstract_feature for Feature_base ). | |
void | set_name (const std::string &name) |
changes the name of the feature. | |
virtual float | value (std::size_t index)=0 |
returns the value taken by the feature for at the item for the item at position index . More... | |
enum CGAL::Classification::Feature::Color_channel::Channel |
CGAL::Classification::Feature::Color_channel< GeomTraits, PointRange, ColorMap >::Color_channel | ( | const PointRange & | input, |
ColorMap | color_map, | ||
Channel | channel | ||
) |
constructs a feature based on the given color channel.
input | point range. |
color_map | property map to access the colors of the input points. |
channel | chosen HSV channel. |