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

◆ apply_gain_channels()

MAYAFLUX_API void MayaFlux::apply_gain_channels ( std::vector< Kakshya::DataVariant > &  channels,
double  gain_factor 
)

Apply gain to multi-channel data (in-place)

Parameters
channelsVector of channel data (modified in-place)
gain_factorMultiplication factor applied to all channels

Definition at line 511 of file Yantra.cpp.

512{
513 auto transformer = std::make_shared<Yantra::MathematicalTransformer<>>(Yantra::MathematicalOperation::GAIN);
514 transformer->set_parameter("gain_factor", gain_factor);
516 auto result = transformer->apply_operation(input);
517 channels = result.data;
518}
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.

Referenced by normalize_together().

+ Here is the caller graph for this function: