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

◆ RegionSegment() [2/3]

MayaFlux::Kakshya::RegionSegment::RegionSegment ( const Region region)
inlineexplicit

Construct a segment from a region (full region).

Parameters
regionThe source region.

Definition at line 61 of file RegionSegment.hpp.

62 : source_region(region)
63 , offset_in_region(region.start_coordinates.size(), 0)
64 , segment_size(region.start_coordinates.size())
65 , current_position(region.start_coordinates.size(), 0)
66 {
67 for (size_t i = 0; i < segment_size.size(); ++i) {
68 segment_size[i] = region.get_span(i);
69 }
70 }
Region source_region
Associated region.
std::vector< uint64_t > offset_in_region
Offset within the source region.
std::vector< uint64_t > segment_size
Size in each dimension.
std::vector< uint64_t > current_position
Current position within segment.
uint64_t get_span(uint32_t dimension_index=0) const
Get the span (length) of the region along a dimension.
Definition Region.hpp:284

References MayaFlux::Kakshya::Region::get_span().

+ Here is the call graph for this function: