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

◆ insert_region()

void MayaFlux::Kakshya::RegionGroup::insert_region ( size_t  index,
const Region region 
)
inline

Insert a region at a specific index.

Parameters
indexPosition to insert at.
regionThe Region to insert.

Definition at line 97 of file RegionGroup.hpp.

98 {
99 if (index >= regions.size()) {
100 regions.push_back(region);
101 } else {
102 regions.insert(regions.begin() + index, region);
103 }
104 }
std::vector< Region > regions
Collection of regions belonging to this group.