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

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFGrainMerge< 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 CFGrainMerge< T >

Definition at line 648 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

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

Definition at line 649 of file KoCompositeOpFunctions.h.

649 {
650 using namespace Arithmetic;
651 typedef typename KoColorSpaceMathsTraits<T>::compositetype composite_type;
652 return clampToSDR<T>(composite_type(dst) + src - halfValue<T>());
653 }

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