42 #include <pcl/recognition/region_xy.h>
54 const std::size_t 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 std::size_t 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);