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

◆ with_gain() [1/2]

MAYAFLUX_API Kakshya::DataVariant MayaFlux::with_gain ( const Kakshya::DataVariant data,
double  gain_factor 
)

Definition at line 540 of file Yantra.cpp.

541{
542 auto transformer = std::make_shared<Yantra::MathematicalTransformer<>>(Yantra::MathematicalOperation::GAIN);
543 transformer->set_parameter("gain_factor", gain_factor);
545 auto result = transformer->apply_operation(input);
546 return result.data[0];
547}
T data
The actual computation data.
Definition DataIO.hpp:25
Input/Output container for computation pipeline data flow with structure preservation.
Definition DataIO.hpp:24

References MayaFlux::Yantra::IO< T >::data, and MayaFlux::Yantra::GAIN.