MayaFlux 0.1.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 266 of file Region.hpp.

267 {
268 if (start_coordinates.size() != other.start_coordinates.size())
269 return false;
270
271 for (size_t i = 0; i < start_coordinates.size(); i++) {
272 if (end_coordinates[i] < other.start_coordinates[i] || start_coordinates[i] > other.end_coordinates[i]) {
273 return false;
274 }
275 }
276 return true;
277 }
std::vector< uint64_t > end_coordinates
Ending frame index (inclusive)
Definition Region.hpp:72
std::vector< uint64_t > start_coordinates
Starting frame index (inclusive)
Definition Region.hpp:69

References end_coordinates, and start_coordinates.