48 template <
class Po
intT>
66 stream.write(
reinterpret_cast<const char*
>(&channel),
sizeof(channel));
76 p1.deserialize(stream);
77 p2.deserialize(stream);
78 stream.read(
reinterpret_cast<char*
>(&channel),
sizeof(channel));
Feature for comparing two sample points in 2D multi-channel data.
unsigned char channel
Specifies which channel is used for comparison.
PointT p2
Second sample point.
void deserialize(std::istream &stream)
Deserializes the feature from a stream.
MultiChannel2DComparisonFeature()
Constructor.
virtual ~MultiChannel2DComparisonFeature()=default
Destructor.
PointT p1
First sample point.
void serialize(std::ostream &stream) const
Serializes the feature to a stream.
Define standard C methods and C++ classes that are common to all methods.
A point structure representing Euclidean xyz coordinates, and the RGB color.