|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::vector< double > MayaFlux::Kakshya::extract_region_channel | ( | const Region & | region, |
| const std::shared_ptr< SignalSourceContainer > & | container, | ||
| uint32_t | channel | ||
| ) |
Extract samples for a single channel within a Region from a container.
Slices the container's channel data by the sample range defined by region's start_coordinates[0] and end_coordinates[0] (inclusive). Uses get_region_data for the slice, then converts the requested channel variant to double. Returns an empty vector on any error (null container, channel out of range, empty region data).
This is the domain-neutral replacement for Granular::extract_grain_samples. It carries no assumption about grains, hop sizes, or granular semantics.
| region | Region whose first coordinate pair defines the sample range. |
| container | Signal data source. |
| channel | Zero-based channel index. |
Definition at line 200 of file ContainerUtils.cpp.
References channel, and storage.
Referenced by MayaFlux::Yantra::Granular::AttributeOp::compute_grain_attribute().
Here is the caller graph for this function: