MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Kakshya::CompositeProjection Struct Reference

Owning homogeneous NDData projection of one Composite field. More...

#include <CompositeAccess.hpp>

+ Collaboration diagram for MayaFlux::Kakshya::CompositeProjection:

Public Attributes

std::vector< DataDimension > dimensions
 One CUSTOM axis named for the field.
 
DataModality modality { DataModality::TENSOR_ND }
 Projection modality.
 
DataVariant presence { std::vector<uint8_t> {} }
 One byte per value.
 
DataVariant values
 Homogeneous values of the requested field type.
 

Detailed Description

Owning homogeneous NDData projection of one Composite field.

Presence contains one uint8_t per element: 1 for present, 0 for absent. Values for absent elements are zero-filled and must be interpreted using the presence variant. The dimension describes the projected field as a one-dimensional TENSOR_ND value sequence.

Usage:

auto projection = items.to_nddata<double>("score");
const auto& scores = std::get<std::vector<double>>(projection->values);
const auto& present = std::get<std::vector<uint8_t>>(projection->presence);

Definition at line 24 of file CompositeAccess.hpp.


The documentation for this struct was generated from the following file: