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

◆ set_transformation_parameter()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
void MayaFlux::Yantra::ConvolutionTransformer< InputType, OutputType >::set_transformation_parameter ( const std::string &  name,
std::any  value 
)
inlineoverrideprotectedvirtual

Sets transformation parameters.

Parameters
nameParameter name
valueParameter value

Handles setting of convolution operation type and delegates other parameters to base class. Supports both enum and string values for the "operation" parameter.

Common parameters include:

  • "impulse_response": Impulse response for convolution/deconvolution operations
  • "template_signal": Template signal for cross-correlation
  • "reference_signal": Reference signal for matched filtering
  • "normalize": Whether to normalize correlation results
  • "regularization": Regularization parameter for deconvolution stability

Reimplemented from MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >.

Definition at line 165 of file ConvolutionTransformer.hpp.

166 {
167 if (name == "operation") {
168 if (auto r = safe_any_cast<ConvolutionOperation>(value)) {
169 m_operation = *r.value;
170 return;
171 }
172 if (auto r = safe_any_cast<std::string>(value)) {
173 if (auto e = Reflect::string_to_enum_case_insensitive<ConvolutionOperation>(*r.value)) {
174 m_operation = *e;
175 return;
176 }
177 }
178 }
179
181 }
glm::vec3 value
std::string name
Definition VKDevice.cpp:123
ConvolutionOperation m_operation
Current convolution operation.
virtual void set_transformation_parameter(const std::string &name, std::any value)
Transformation-specific parameter handling (override for custom parameters)

References MayaFlux::Yantra::ConvolutionTransformer< InputType, OutputType >::m_operation, name, MayaFlux::Yantra::UniversalTransformer< InputType, OutputType >::set_transformation_parameter(), and value.

+ Here is the call graph for this function: