38 #ifndef PCL_ML_MULTI_CHANNEL_2D_COMPARISON_FEATURE_H_ 39 #define PCL_ML_MULTI_CHANNEL_2D_COMPARISON_FEATURE_H_ 50 template <
class Po
intT>
65 p1.serialize (stream);
66 p2.serialize (stream);
67 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));
MultiChannel2DComparisonFeature()
Constructor.
Feature for comparing two sample points in 2D multi-channel data.
virtual ~MultiChannel2DComparisonFeature()
Destructor.
Define standard C methods and C++ classes that are common to all methods.
void serialize(std::ostream &stream) const
Serializes the feature to a stream.
void deserialize(std::istream &stream)
Deserializes the feature from a stream.
unsigned char channel
Specifies which channel is used for comparison.
PointT p2
Second sample point.
A point structure representing Euclidean xyz coordinates, and the RGB color.
PointT p1
First sample point.