38 #ifndef PCL_FEATURES_SPARSE_QUANTIZED_MULTI_MOD_TEMPLATE 39 #define PCL_FEATURES_SPARSE_QUANTIZED_MULTI_MOD_TEMPLATE 43 #include <pcl/recognition/region_xy.h> 125 const int num_of_features = static_cast<int> (
features.size ());
126 write (stream, num_of_features);
127 for (
int feature_index = 0; feature_index < num_of_features; ++feature_index)
129 features[feature_index].serialize (stream);
143 read (stream, num_of_features);
145 for (
int feature_index = 0; feature_index < num_of_features; ++feature_index)
147 features[feature_index].deserialize (stream);
void deserialize(std::istream &stream)
Deserializes the object from the specified stream.
std::vector< QuantizedMultiModFeature > features
The storage for the multi-modality features.
This file defines compatibility wrappers for low level I/O functions.
Feature that defines a position and quantized value in a specific modality.
void serialize(std::ostream &stream) const
Serializes the object to the specified stream.
void read(std::istream &stream, Type &value)
Function for reading data from a stream.
Defines a region in XY-space.
A multi-modality template constructed from a set of quantized multi-modality features.
unsigned char quantized_value
the quantized value attached to the feature.
SparseQuantizedMultiModTemplate()
Constructor.
void deserialize(::std::istream &stream)
Deserializes the object from the specified stream.
void deserialize(std::istream &stream)
Deserializes the object from the specified stream.
void serialize(std::ostream &stream) const
Serializes the object to the specified stream.
bool compareForEquality(const QuantizedMultiModFeature &base)
Compares whether two features are the same.
RegionXY region
The region assigned to the template.
QuantizedMultiModFeature()
Constructor.
void serialize(std::ostream &stream) const
Serializes the object to the specified stream.
void write(std::ostream &stream, Type value)
Function for writing data to a stream.
size_t modality_index
the index of the corresponding modality.