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

◆ extract_region() [2/2]

template<typename T >
std::vector< T > MayaFlux::Kakshya::extract_region ( const std::vector< T > &  data,
const Region region,
const std::vector< DataDimension > &  dimensions 
)

Extract a region of data from a vector using a Region and dimension info.

Template Parameters
TData type.
Parameters
dataSource data vector.
regionRegion to extract.
dimensionsDimension descriptors.
Returns
Vector containing the extracted region data.

Definition at line 255 of file RegionUtils.hpp.

259{
260 std::span<const T> data_span(data.data(), data.size());
261 return extract_region_data(data_span, region, dimensions);
262}
std::vector< T > extract_region_data(const std::span< const T > &source_data, const Region &region, const std::vector< DataDimension > &dimensions)
Extract a region of data from a flat data span using a Region and dimension info.

References extract_region_data().

+ Here is the call graph for this function: