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

◆ SpectralTransformer() [2/2]

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
MayaFlux::Yantra::SpectralTransformer< InputType, OutputType >::SpectralTransformer ( const SpectralTransformerConfig &  config)
inlineexplicit

Construct and configure a spectral transformer in one step.

Parameters
configInitial transformation settings.

Definition at line 55 of file SpectralTransformer.hpp.

56 : SpectralTransformer(config.operation)
57 {
58 this->set_strategy(config.strategy);
59 this->set_quality(config.quality);
60 this->set_scope(config.scope);
61 this->set_intensity(config.intensity);
62
63 for (const auto& key : config.keys) {
64 this->add_transformation_key(key);
65 }
66
67 for (const auto& [name, value] : config.parameters) {
68 this->set_parameter(name, value);
69 }
70 }
glm::vec3 value
std::string name
Definition VKDevice.cpp:123
SpectralTransformer(SpectralOperation op=SpectralOperation::FREQUENCY_SHIFT)
Constructs a SpectralTransformer with specified operation.
void set_strategy(TransformationStrategy strategy)
Sets the transformation strategy.
void set_intensity(double intensity)
Set transformation intensity (0.0 = no transformation, 1.0 = full transformation)
void set_scope(TransformationScope scope)
Sets the transformation scope.
void set_parameter(const std::string &name, std::any value) override
Type-safe parameter management with transformation-specific defaults.
void set_quality(TransformationQuality quality)
Sets the transformation quality level.
void add_transformation_key(const TransformationKey &key)
Add transformation key for multi-dimensional transformations.

References MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::add_transformation_key(), MayaFlux::Yantra::TransformerConfig< Operation >::intensity, MayaFlux::Yantra::TransformerConfig< Operation >::keys, name, MayaFlux::Yantra::TransformerConfig< Operation >::parameters, MayaFlux::Yantra::TransformerConfig< Operation >::quality, MayaFlux::Yantra::TransformerConfig< Operation >::scope, MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_intensity(), MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_parameter(), MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_quality(), MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_scope(), MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_strategy(), MayaFlux::Yantra::TransformerConfig< Operation >::strategy, and value.

+ Here is the call graph for this function: