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

◆ operator==()

bool MayaFlux::Kakshya::Region::operator== ( const Region other) const
inline

Equality comparison for Regions.

Definition at line 409 of file Region.hpp.

410 {
411 if (start_coordinates.size() != other.start_coordinates.size() || end_coordinates.size() != other.end_coordinates.size()) {
412 return false;
413 }
414
415 for (size_t i = 0; i < start_coordinates.size(); ++i) {
416 if (start_coordinates[i] != other.start_coordinates[i]) {
417 return false;
418 }
419 }
420
421 for (size_t i = 0; i < end_coordinates.size(); ++i) {
422 if (end_coordinates[i] != other.end_coordinates[i]) {
423 return false;
424 }
425 }
426
427 return true;
428 }
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.