MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / setSlope

Method setSlope

src/OpenColorIO/transforms/CDLTransform.cpp:188–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void CDLTransformImpl::setSlope(const double * rgb)
189{
190 if (!rgb)
191 {
192 throw Exception("CDLTransform: Invalid 'slope' pointer");
193 }
194
195 data().setSlopeParams(CDLOpData::ChannelParams(rgb[0], rgb[1], rgb[2]));
196}
197
198void CDLTransformImpl::getSlope(double * rgb) const
199{

Callers 2

Generate_tonecurve_opsFunction · 0.45

Calls 2

ChannelParamsClass · 0.85
setSlopeParamsMethod · 0.80

Tested by

no test coverage detected