42 #include <pcl/recognition/region_xy.h>
54 const auto num_of_features =
static_cast<std::size_t
> (
features.size ());
55 write (stream, num_of_features);
56 for (std::size_t feature_index = 0; feature_index < num_of_features; ++feature_index)
67 std::size_t num_of_features;
68 read (stream, num_of_features);
70 for (std::size_t feature_index = 0; feature_index < num_of_features; ++feature_index)
87 const auto num_of_modalities =
static_cast<std::size_t
> (
modalities.size ());
88 write (stream, num_of_modalities);
89 for (std::size_t modality_index = 0; modality_index < num_of_modalities; ++modality_index)
102 std::size_t num_of_modalities;
103 read (stream, num_of_modalities);
105 for (std::size_t modality_index = 0; modality_index < num_of_modalities; ++modality_index)
107 modalities[modality_index].deserialize (stream);
void read(std::istream &stream, Type &value)
Function for reading data from a stream.
void write(std::ostream &stream, Type value)
Function for writing data to a stream.
void deserialize(std::istream &stream)
void serialize(std::ostream &stream) const
std::vector< DenseQuantizedSingleModTemplate > modalities
void deserialize(std::istream &stream)
std::vector< unsigned char > features
void serialize(std::ostream &stream) const
Defines a region in XY-space.
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.