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

◆ overlaps()

bool MayaFlux::Kakshya::Region::overlaps ( const Region &  other) const
inline

Check if this region overlaps with another region.

Parameters
otherThe other region.
Returns
True if overlapping, false otherwise.

Definition at line 272 of file Region.hpp.

273 {
274 if (start_coordinates.size() != other.start_coordinates.size())
275 return false;
276
277 for (size_t i = 0; i < start_coordinates.size(); i++) {
278 if (end_coordinates[i] < other.start_coordinates[i] || start_coordinates[i] > other.end_coordinates[i]) {
279 return false;
280 }
281 }
282 return true;
283 }
std::vector< uint64_t > end_coordinates
Ending frame index (inclusive)
Definition Region.hpp:78
std::vector< uint64_t > start_coordinates
Starting frame index (inclusive)
Definition Region.hpp:75

References end_coordinates, and start_coordinates.