MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ find_regions_with_label()

std::vector< Region > MayaFlux::Kakshya::RegionGroup::find_regions_with_label ( const std::string &  label) const
inline

Find all regions with a given label.

Parameters
labelThe label to search for.
Returns
Vector of matching Regions.

Definition at line 166 of file RegionGroup.hpp.

167 {
168 std::vector<Region> result;
169 for (const auto& region : regions) {
170 if (region.get_label() == label) {
171 result.push_back(region);
172 }
173 }
174 return result;
175 }
std::vector< Region > regions
Collection of regions belonging to this group.