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

302 {
303 uint64_t volume = 1;
304 for (size_t i = 0; i < start_coordinates.size(); i++) {
305 volume *= get_span(i);
306 }
307 return volume;
308 }
uint64_t get_span(uint32_t dimension_index=0) const
Get the span (length) of the region along a dimension.
Definition Region.hpp:290
std::vector< uint64_t > start_coordinates
Starting frame index (inclusive)
Definition Region.hpp:75

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

+ Here is the caller graph for this function: