MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Yantra::FeatureExtractor< InputType, OutputType > Class Template Reference

Analyzer-guided feature extractor with enum-based configuration. More...

#include <FeatureExtractor.hpp>

+ Inheritance diagram for MayaFlux::Yantra::FeatureExtractor< InputType, OutputType >:
+ Collaboration diagram for MayaFlux::Yantra::FeatureExtractor< InputType, OutputType >:

Public Types

using base_type = UniversalExtractor< InputType, OutputType >
 
using input_type = Datum< InputType >
 
using output_type = Datum< OutputType >
 

Public Member Functions

 FeatureExtractor (uint32_t window_size=512, uint32_t hop_size=256, ExtractionMethod method=ExtractionMethod::HIGH_ENERGY_DATA)
 Construct FeatureExtractor with default parameters.
 
std::vector< std::string > get_available_methods () const override
 Get available extraction methods.
 
ExtractionMethod get_extraction_method () const
 Get current extraction method.
 
ExtractionType get_extraction_type () const override
 Get extraction type category.
 
std::string get_extractor_name () const override
 Get extractor name.
 
uint32_t get_hop_size () const
 Get current hop size.
 
uint32_t get_window_size () const
 Get current window size.
 
void set_extraction_method (const std::string &method_name)
 Set extraction method using string (case-insensitive)
 
void set_extraction_method (ExtractionMethod method)
 Set extraction method using enum.
 
void set_hop_size (uint32_t size)
 Set hop size for analysis.
 
void set_window_size (uint32_t size)
 Set window size for analysis.
 
bool validate_extraction_input (const input_type &input) const override
 Input validation.
 

Static Public Member Functions

static std::string method_to_string (ExtractionMethod method)
 Convert extraction method enum to string.
 
static ExtractionMethod string_to_method (const std::string &str)
 Convert string to extraction method enum.
 

Protected Member Functions

output_type extract_implementation (const input_type &input) override
 Core extraction implementation - delegates to ExtractionHelper.
 
std::any get_extraction_parameter (const std::string &name) const override
 
void set_extraction_parameter (const std::string &name, std::any value) override
 Handle extractor-specific parameters.
 

Private Member Functions

void validate_parameters () const
 Validate extraction parameters.
 

Private Attributes

uint32_t m_hop_size
 
ExtractionMethod m_method
 
uint32_t m_window_size
 

Detailed Description

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = std::vector<std::vector<double>>>
class MayaFlux::Yantra::FeatureExtractor< InputType, OutputType >

Analyzer-guided feature extractor with enum-based configuration.

Uses analyzers to identify regions of interest based on energy, statistical properties, or spectral characteristics, then extracts the actual data from those regions. All extraction logic is delegated to ExtractionHelper functions.

Definition at line 63 of file FeatureExtractor.hpp.


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