digiKam
Digikam::ImageLevels Class Reference

Public Member Functions

double getLevelGammaValue (int channel)
 
int getLevelHighInputValue (int channel)
 
int getLevelHighOutputValue (int channel)
 
int getLevelLowInputValue (int channel)
 
int getLevelLowOutputValue (int channel)
 
 ImageLevels (bool sixteenBit)
 
bool isDirty ()
 
bool isSixteenBits ()
 
void levelsAuto (ImageHistogram *const hist)
 
void levelsBlackToneAdjustByColors (int channel, const DColor &color)
 
void levelsCalculateTransfers ()
 
void levelsChannelAuto (ImageHistogram *const hist, int channel)
 
void levelsChannelReset (int channel)
 
void levelsGrayToneAdjustByColors (int channel, const DColor &color)
 
int levelsInputFromColor (int channel, const DColor &color)
 
float levelsLutFunc (int nchannels, int channel, float value)
 
void levelsLutProcess (uchar *const srcPR, uchar *const destPR, int w, int h)
 
void levelsLutSetup (int nchannels)
 
void levelsWhiteToneAdjustByColors (int channel, const DColor &color)
 
bool loadLevelsFromGimpLevelsFile (const QUrl &fileUrl)
 
void reset ()
 
bool saveLevelsToGimpLevelsFile (const QUrl &fileUrl)
 
void setLevelGammaValue (int channel, double val)
 
void setLevelHighInputValue (int channel, int val)
 
void setLevelHighOutputValue (int channel, int val)
 
void setLevelLowInputValue (int channel, int val)
 
void setLevelLowOutputValue (int channel, int val)
 
 ~ImageLevels ()
 

Constructor & Destructor Documentation

◆ ImageLevels()

Digikam::ImageLevels::ImageLevels ( bool  sixteenBit)
explicit

References reset().

◆ ~ImageLevels()

Digikam::ImageLevels::~ImageLevels ( )

Member Function Documentation

◆ getLevelGammaValue()

double Digikam::ImageLevels::getLevelGammaValue ( int  channel)

◆ getLevelHighInputValue()

int Digikam::ImageLevels::getLevelHighInputValue ( int  channel)

◆ getLevelHighOutputValue()

int Digikam::ImageLevels::getLevelHighOutputValue ( int  channel)

◆ getLevelLowInputValue()

int Digikam::ImageLevels::getLevelLowInputValue ( int  channel)

◆ getLevelLowOutputValue()

int Digikam::ImageLevels::getLevelLowOutputValue ( int  channel)

◆ isDirty()

bool Digikam::ImageLevels::isDirty ( )

◆ isSixteenBits()

bool Digikam::ImageLevels::isSixteenBits ( )

◆ levelsAuto()

void Digikam::ImageLevels::levelsAuto ( ImageHistogram *const  hist)

◆ levelsBlackToneAdjustByColors()

void Digikam::ImageLevels::levelsBlackToneAdjustByColors ( int  channel,
const DColor color 
)

◆ levelsCalculateTransfers()

void Digikam::ImageLevels::levelsCalculateTransfers ( )

References CLAMP.

◆ levelsChannelAuto()

void Digikam::ImageLevels::levelsChannelAuto ( ImageHistogram *const  hist,
int  channel 
)

◆ levelsChannelReset()

void Digikam::ImageLevels::levelsChannelReset ( int  channel)

Methods to manipulate the levels data.

Referenced by levelsAuto(), and reset().

◆ levelsGrayToneAdjustByColors()

void Digikam::ImageLevels::levelsGrayToneAdjustByColors ( int  channel,
const DColor color 
)

◆ levelsInputFromColor()

◆ levelsLutFunc()

float Digikam::ImageLevels::levelsLutFunc ( int  nchannels,
int  channel,
float  value 
)

References value.

Referenced by levelsLutSetup().

◆ levelsLutProcess()

void Digikam::ImageLevels::levelsLutProcess ( uchar *const  srcPR,
uchar *const  destPR,
int  w,
int  h 
)

◆ levelsLutSetup()

void Digikam::ImageLevels::levelsLutSetup ( int  nchannels)

References CLAMP, and levelsLutFunc().

◆ levelsWhiteToneAdjustByColors()

void Digikam::ImageLevels::levelsWhiteToneAdjustByColors ( int  channel,
const DColor color 
)

◆ loadLevelsFromGimpLevelsFile()

bool Digikam::ImageLevels::loadLevelsFromGimpLevelsFile ( const QUrl &  fileUrl)

◆ reset()

void Digikam::ImageLevels::reset ( )

References levelsChannelReset().

Referenced by ImageLevels().

◆ saveLevelsToGimpLevelsFile()

bool Digikam::ImageLevels::saveLevelsToGimpLevelsFile ( const QUrl &  fileUrl)

Methods to save/load the levels values to/from a Gimp levels text file.

References getLevelGammaValue(), getLevelHighInputValue(), getLevelLowInputValue(), and getLevelLowOutputValue().

◆ setLevelGammaValue()

void Digikam::ImageLevels::setLevelGammaValue ( int  channel,
double  val 
)

Methods to set manually the levels values.

Referenced by loadLevelsFromGimpLevelsFile().

◆ setLevelHighInputValue()

void Digikam::ImageLevels::setLevelHighInputValue ( int  channel,
int  val 
)

◆ setLevelHighOutputValue()

void Digikam::ImageLevels::setLevelHighOutputValue ( int  channel,
int  val 
)

◆ setLevelLowInputValue()

void Digikam::ImageLevels::setLevelLowInputValue ( int  channel,
int  val 
)

◆ setLevelLowOutputValue()

void Digikam::ImageLevels::setLevelLowOutputValue ( int  channel,
int  val 
)

The documentation for this class was generated from the following files: