26 #ifndef DIGIKAM_FILM_GRAIN_FILTER_H
27 #define DIGIKAM_FILM_GRAIN_FILTER_H
46 photoDistribution(false),
47 addLuminanceNoise(true),
52 addChrominanceBlueNoise(false),
53 chromaBlueIntensity(25),
54 chromaBlueShadows(-100),
55 chromaBlueMidtones(0),
56 chromaBlueHighlights(-100),
57 addChrominanceRedNoise(false),
58 chromaRedIntensity(25),
59 chromaRedShadows(-100),
61 chromaRedHighlights(-100)
71 return (addLuminanceNoise || addChrominanceBlueNoise || addChrominanceRedNoise);
110 int progressBegin=0,
int progressEnd=100,
117 return QLatin1String(
"digikam:FilmGrainFilter");
120 static QString DisplayableName();
132 void readParameters(
const FilterAction& action)
override;
136 return FilterIdentifier();
143 void filterImage()
override;
145 void filmgrainMultithreaded(uint start, uint stop);
147 inline void computeNoiseSettings(
const DColor& col,
148 double& luRange,
double& luNoise,
149 double& cbRange,
double& cbNoise,
150 double& crRange,
double& crNoise);
151 inline double interpolate(
int shadows,
int midtones,
int highlights,
const DColor& col);
152 inline double randomizeUniform(
double range);
153 inline double randomizeGauss(
double sigma);
154 inline double randomizePoisson(
double lambda);
155 inline void adjustYCbCr(
DColor& col,
double range,
double nRand,
int channel);
Definition: dimgthreadedfilter.h:41
Definition: filmgrainfilter.h:40
int grainSize
Definition: filmgrainfilter.h:72
int lumaIntensity
Definition: filmgrainfilter.h:80
int chromaBlueHighlights
Definition: filmgrainfilter.h:89
int lumaMidtones
Definition: filmgrainfilter.h:82
int chromaBlueMidtones
Definition: filmgrainfilter.h:88
FilmGrainContainer()
Definition: filmgrainfilter.h:44
bool photoDistribution
Definition: filmgrainfilter.h:77
int lumaShadows
Definition: filmgrainfilter.h:81
~FilmGrainContainer()
Definition: filmgrainfilter.h:65
int chromaRedIntensity
Definition: filmgrainfilter.h:92
int chromaRedShadows
Definition: filmgrainfilter.h:93
bool isDirty() const
Definition: filmgrainfilter.h:69
int chromaBlueIntensity
Definition: filmgrainfilter.h:86
bool addChrominanceRedNoise
Definition: filmgrainfilter.h:91
int chromaBlueShadows
Definition: filmgrainfilter.h:87
int chromaRedHighlights
Definition: filmgrainfilter.h:95
bool addChrominanceBlueNoise
Definition: filmgrainfilter.h:85
int chromaRedMidtones
Definition: filmgrainfilter.h:94
bool addLuminanceNoise
Definition: filmgrainfilter.h:79
int lumaHighlights
Definition: filmgrainfilter.h:83
Definition: filmgrainfilter.h:101
static QString FilterIdentifier()
Definition: filmgrainfilter.h:115
static int CurrentVersion()
Definition: filmgrainfilter.h:127
static QList< int > SupportedVersions()
Definition: filmgrainfilter.h:122
QString filterIdentifier() const override
Definition: filmgrainfilter.h:134
Definition: filteraction.h:43
Definition: datefolderview.cpp:43