|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inlinestatic |
Extract native-typed channel spans and structure metadata from a Datum or direct ComputeData, without double coercion.
Mirrors extract_structured_double in structure: same DataStructureInfo population, same Datum unwrapping, same container handling for RegionLike types. The only difference is that channel data is returned as DataSpanVariant (type-erased native span) rather than span<double>.
Use this as the entry point for Kinesis::Vision operations and any other pipeline that must preserve the source's native element type (uint8_t pixel data, uint16_t depth, float HDR, etc.).
For RegionLike data types the region variants are returned as DataSpanVariant via extract_native_data(DataVariant), consistent with the non-region overloads.
Callers branch on DataSpanVariant::element_type() or use FrameView::as<E>() / DataSpanVariant::get_if<span<const E>>() when the native type is statically known.
| T | OperationReadyData type. |
| compute_data | Datum or direct ComputeData to extract from. |
| std::runtime_error | if a container is required but absent. |
Definition at line 401 of file OperationHelper.hpp.
References MayaFlux::Yantra::DataStructureInfo::original_type.
Referenced by MayaFlux::Yantra::VisionAnalyzer< InputType, OutputType >::analyze_implementation().
Here is the caller graph for this function: