MayaFlux 0.4.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 415 of file Region.hpp.

416 {
417 if (start_coordinates.size() != other.start_coordinates.size() || end_coordinates.size() != other.end_coordinates.size()) {
418 return false;
419 }
420
421 for (size_t i = 0; i < start_coordinates.size(); ++i) {
422 if (start_coordinates[i] != other.start_coordinates[i]) {
423 return false;
424 }
425 }
426
427 for (size_t i = 0; i < end_coordinates.size(); ++i) {
428 if (end_coordinates[i] != other.end_coordinates[i]) {
429 return false;
430 }
431 }
432
433 return true;
434 }
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.