MayaFlux 0.1.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 389 of file RegionUtils.cpp.

390{
391 std::vector<DataDimension> result;
392 std::ranges::copy_if(dimensions, std::back_inserter(result),
393 [](const DataDimension& dim) {
394 return dim.role != DataDimension::Role::CHANNEL;
395 });
396 return result;
397}
Role role
Semantic hint for common operations.
Definition NDData.hpp:190
Minimal dimension descriptor focusing on structure only.
Definition NDData.hpp:138

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: