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

◆ get_span()

uint64_t MayaFlux::Kakshya::Region::get_span ( uint32_t  dimension_index = 0) const
inline

Get the span (length) of the region along a dimension.

Parameters
dimension_indexThe dimension to query.
Returns
The span (number of elements) along the dimension.

Definition at line 284 of file Region.hpp.

285 {
286 if (dimension_index >= start_coordinates.size())
287 return 0;
288 return end_coordinates[dimension_index] - start_coordinates[dimension_index] + 1;
289 }
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

Referenced by MayaFlux::Kakshya::RegionSegment::RegionSegment().

+ Here is the caller graph for this function: