Krita Source Code Documentation
Loading...
Searching...
No Matches
CFGrainExtract< T > Struct Template Reference

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFGrainExtract< T >:

Static Public Member Functions

static T composeChannel (T src, T dst)
 
- Static Public Member Functions inherited from KoClampedSourceAndDestinationCompositeOpGenericFunctorBase< T >
static T clampDestinationChannelValue (T value)
 
static T clampSourceChannelValue (T value)
 

Detailed Description

template<class T>
struct CFGrainExtract< T >

Definition at line 657 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

template<class T >
static T CFGrainExtract< T >::composeChannel ( T src,
T dst )
inlinestatic

Definition at line 658 of file KoCompositeOpFunctions.h.

658 {
659 using namespace Arithmetic;
660 typedef typename KoColorSpaceMathsTraits<T>::compositetype composite_type;
661 return clampToSDR<T>(composite_type(dst) - src + halfValue<T>());
662 }

The documentation for this struct was generated from the following file: