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

◆ add_attribution_metadata()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
virtual output_type MayaFlux::Yantra::UniversalAnalyzer< InputType, OutputType >::add_attribution_metadata ( const output_type raw_output)
inlineprotectedvirtual

Add attribution metadata to results (override for custom attribution)

Definition at line 324 of file UniversalAnalyzer.hpp.

325 {
326 output_type attributed = raw_output;
327 attributed.metadata["analysis_type"] = static_cast<int>(get_analysis_type());
328 attributed.metadata["analyzer_name"] = get_analyzer_name();
329 attributed.metadata["granularity"] = static_cast<int>(m_granularity);
330 return attributed;
331 }
virtual AnalysisType get_analysis_type() const =0
Gets the analysis type category for this analyzer.
virtual std::string get_analyzer_name() const
Get analyzer-specific name (derived classes override this)
std::unordered_map< std::string, std::any > metadata
Associated metadata.
Definition DataIO.hpp:28

References MayaFlux::Yantra::IO< T >::metadata.