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

◆ MathematicalTransformer() [2/2]

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

Construct and configure a mathematical transformer in one step.

Parameters
configInitial transformation settings.

Definition at line 60 of file MathematicalTransformer.hpp.

61 : MathematicalTransformer(config.operation)
62 {
63 this->set_strategy(config.strategy);
64 this->set_quality(config.quality);
65 this->set_scope(config.scope);
66 this->set_intensity(config.intensity);
67
68 for (const auto& key : config.keys) {
69 this->add_transformation_key(key);
70 }
71
72 for (const auto& [name, value] : config.parameters) {
73 this->set_parameter(name, value);
74 }
75 }
glm::vec3 value
std::string name
Definition VKDevice.cpp:123
MathematicalTransformer(MathematicalOperation op=MathematicalOperation::GAIN)
Constructs a MathematicalTransformer 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: