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

◆ get_non_channel_dimensions()

std::vector< DataDimension > MayaFlux::Kakshya::get_non_channel_dimensions ( const std::vector< DataDimension > &  dimensions)

Get all non-channel dimensions from a list of dimensions.

Parameters
dimensionsVector of DataDimension descriptors.
Returns
Vector of DataDimensions excluding the channel dimension.

This function filters out the dimension marked as 'channel' from the provided list of dimensions. It is useful for operations that need to focus on spatial or temporal dimensions only.

Definition at line 405 of file RegionUtils.cpp.

406{
407 std::vector<DataDimension> result;
408 std::ranges::copy_if(dimensions, std::back_inserter(result),
409 [](const DataDimension& dim) {
410 return dim.role != DataDimension::Role::CHANNEL;
411 });
412 return result;
413}
Role role
Semantic hint for common operations.
Definition NDData.hpp:191
Minimal dimension descriptor focusing on structure only.
Definition NDData.hpp:139

References get_non_channel_dimensions(), and MayaFlux::Kakshya::DataDimension::role.

Referenced by extract_region_data(), get_non_channel_dimensions(), and set_or_update_region_data().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: