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

◆ with_gain_channels()

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

Apply gain to multi-channel data (non-destructive)

Parameters
channelsVector of channel data
gain_factorMultiplication factor applied to all channels
Returns
Vector of modified channel copies

Definition at line 549 of file Yantra.cpp.

550{
551 auto transformer = std::make_shared<Yantra::MathematicalTransformer<>>(Yantra::MathematicalOperation::GAIN);
552 transformer->set_parameter("gain_factor", gain_factor);
554 auto result = transformer->apply_operation(input);
555 return result.data;
556}
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.