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

◆ get_volume()

uint64_t MayaFlux::Kakshya::Region::get_volume ( ) const
inline

Get the total volume (number of elements) in the region.

Returns
The product of spans across all dimensions.

Definition at line 295 of file Region.hpp.

296 {
297 uint64_t volume = 1;
298 for (size_t i = 0; i < start_coordinates.size(); i++) {
299 volume *= get_span(i);
300 }
301 return volume;
302 }
uint64_t get_span(uint32_t dimension_index=0) const
Get the span (length) of the region along a dimension.
Definition Region.hpp:284
std::vector< uint64_t > start_coordinates
Starting frame index (inclusive)
Definition Region.hpp:69

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

+ Here is the caller graph for this function: