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

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFGeometricMean< T >:

Static Public Member Functions

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

Detailed Description

template<class T>
struct CFGeometricMean< T >

Definition at line 782 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannel()

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

Definition at line 783 of file KoCompositeOpFunctions.h.

783 {
784 using namespace Arithmetic;
785
786 if (isUnitValueFuzzy(src) && isUnitValueFuzzy(dst)) {
787 return unitValue<T>();
788 }
789
790 return scale<T>(sqrt(scale<qreal>(dst) * scale<qreal>(src)));
791 }

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