MayaFlux
0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
◆
apply_gain()
[1/2]
MAYAFLUX_API void MayaFlux::apply_gain
(
Kakshya::DataVariant
&
data
,
double
gain_factor
)
Definition at line
500
of file
Yantra.cpp
.
501
{
502
auto
transformer = std::make_shared<Yantra::MathematicalTransformer<>>(Yantra::MathematicalOperation::GAIN);
503
transformer->set_parameter(
"gain_factor"
, gain_factor);
504
505
Yantra::IO<std::vector<Kakshya::DataVariant>
> input { { data } };
506
auto
result = transformer->apply_operation(input);
507
508
data = std::get<std::vector<double>>(result.data[0]);
509
}
MayaFlux::Yantra::IO
Input/Output container for computation pipeline data flow with structure preservation.
Definition
DataIO.hpp:24
References
MayaFlux::Yantra::GAIN
.
MayaFlux
Generated by
1.9.8