digiKam
|
Public Types | |
enum | DecodingQuality { BILINEAR = 0 , VNG = 1 , PPG = 2 , AHD = 3 , DCB = 4 , DHT = 11 , AAHD = 12 } |
enum | InputColorSpace { NOINPUTCS = 0 , EMBEDDED , CUSTOMINPUTCS } |
enum | NoiseReduction { NONR = 0 , WAVELETSNR , FBDDNR } |
enum | OutputColorSpace { RAWCOLOR = 0 , SRGB , ADOBERGB , WIDEGAMMUT , PROPHOTO , CUSTOMOUTPUTCS } |
enum | WhiteBalance { NONE = 0 , CAMERA = 1 , AUTO = 2 , CUSTOM = 3 , AERA = 4 } |
Public Member Functions | |
DRawDecoderSettings () | |
DRawDecoderSettings (const DRawDecoderSettings &o) | |
DRawDecoderSettings & | operator= (const DRawDecoderSettings &o) |
bool | operator== (const DRawDecoderSettings &o) const |
void | optimizeTimeLoading () |
~DRawDecoderSettings () | |
Public Attributes | |
bool | autoBrightness |
int | blackPoint |
double | brightness |
int | customWhiteBalance |
double | customWhiteBalanceGreen |
bool | dcbEnhanceFl |
int | dcbIterations |
For DCB interpolation. More... | |
QString | deadPixelMap |
bool | DontStretchPixels |
bool | enableBlackPoint |
bool | enableWhitePoint |
bool | expoCorrection |
double | expoCorrectionHighlight |
double | expoCorrectionShift |
bool | fixColorsHighlights |
bool | halfSizeColorImage |
InputColorSpace | inputColorSpace |
QString | inputProfile |
int | medianFilterPasses |
int | NRThreshold |
NoiseReduction | NRType |
OutputColorSpace | outputColorSpace |
QString | outputProfile |
DecodingQuality | RAWQuality |
bool | RGBInterpolate4Colors |
bool | sixteenBitsImage |
int | unclipColors |
WhiteBalance | whiteBalance |
QRect | whiteBalanceArea |
int | whitePoint |
RAW decoding Interpolation methods
NOTE: from original dcraw demosaic
Bilinear: use high-speed but low-quality bilinear interpolation (default - for slow computer). In this method, the red value of a non-red pixel is computed as the average of the adjacent red pixels, and similar for blue and green. VNG: use Variable Number of Gradients interpolation. This method computes gradients near the pixel of interest and uses the lower gradients (representing smoother and more similar parts of the image) to make an estimate. PPG: use Patterned Pixel Grouping interpolation. Pixel Grouping uses assumptions about natural scenery in making estimates. It has fewer color artifacts on natural images than the Variable Number of Gradients method. AHD: use Adaptive Homogeneity-Directed interpolation. This method selects the direction of interpolation so as to maximize a homogeneity metric, thus typically minimizing color artifacts. DCB: DCB interpolation (see www.linuxphoto.org/html/dcb.html for details) DHT: DHT interpolation. AAHD: Enhanced Adaptive AHD interpolation.
Enumerator | |
---|---|
BILINEAR | |
VNG | |
PPG | |
AHD | |
DCB | |
DHT | |
AAHD |
Noise Reduction method to apply before demosaicing NONR: No noise reduction. WAVELETSNR: wavelets correction to erase noise while preserving real detail. It's applied after interpolation. FBDDNR: Fake Before Demosaicing Denoising noise reduction. It's applied before interpolation.
Enumerator | |
---|---|
NONR | |
WAVELETSNR | |
FBDDNR |
Output RGB color space used to decoded image RAWCOLOR: No output color profile (Linear RAW). SRGB: Use standard sRGB color space. ADOBERGB: Use standard Adobe RGB color space. WIDEGAMMUT: Use standard RGB Wide Gamut color space. PROPHOTO: Use standard RGB Pro Photo color space. CUSTOMOUTPUTCS: Use a custom workspace color profile.
Enumerator | |
---|---|
RAWCOLOR | |
SRGB | |
ADOBERGB | |
WIDEGAMMUT | |
PROPHOTO | |
CUSTOMOUTPUTCS |
White balances alternatives NONE: no white balance used : reverts to standard daylight D65 WB. CAMERA: Use the camera embedded WB if available. Reverts to NONE if not. AUTO: Averages an auto WB on the entire image. CUSTOM: Let use set it's own temperature and green factor (later converted to RGBG factors). AERA: Let use an area from image to average white balance (see whiteBalanceArea for details).
Enumerator | |
---|---|
NONE | |
CAMERA | |
AUTO | |
CUSTOM | |
AERA |
Digikam::DRawDecoderSettings::DRawDecoderSettings | ( | ) |
Standard constructor with default settings
Digikam::DRawDecoderSettings::DRawDecoderSettings | ( | const DRawDecoderSettings & | o | ) |
Equivalent to the copy constructor
Digikam::DRawDecoderSettings::~DRawDecoderSettings | ( | ) |
Standard destructor
DRawDecoderSettings & Digikam::DRawDecoderSettings::operator= | ( | const DRawDecoderSettings & | o | ) |
References autoBrightness, blackPoint, brightness, customWhiteBalance, customWhiteBalanceGreen, dcbEnhanceFl, dcbIterations, deadPixelMap, DontStretchPixels, enableBlackPoint, enableWhitePoint, expoCorrection, expoCorrectionHighlight, expoCorrectionShift, fixColorsHighlights, halfSizeColorImage, inputColorSpace, inputProfile, medianFilterPasses, NRThreshold, NRType, outputColorSpace, outputProfile, RAWQuality, RGBInterpolate4Colors, sixteenBitsImage, unclipColors, whiteBalance, whiteBalanceArea, and whitePoint.
bool Digikam::DRawDecoderSettings::operator== | ( | const DRawDecoderSettings & | o | ) | const |
Compare for equality
References autoBrightness, blackPoint, brightness, customWhiteBalance, customWhiteBalanceGreen, dcbEnhanceFl, dcbIterations, deadPixelMap, DontStretchPixels, enableBlackPoint, enableWhitePoint, expoCorrection, expoCorrectionHighlight, expoCorrectionShift, fixColorsHighlights, halfSizeColorImage, inputColorSpace, inputProfile, medianFilterPasses, NRThreshold, NRType, outputColorSpace, outputProfile, RAWQuality, RGBInterpolate4Colors, sixteenBitsImage, unclipColors, whiteBalance, whiteBalanceArea, and whitePoint.
void Digikam::DRawDecoderSettings::optimizeTimeLoading | ( | ) |
Method to use a settings to optimize time loading, for example to compute image histogram
References autoBrightness, BILINEAR, blackPoint, brightness, CAMERA, customWhiteBalance, customWhiteBalanceGreen, dcbEnhanceFl, dcbIterations, deadPixelMap, DontStretchPixels, enableBlackPoint, enableWhitePoint, expoCorrection, expoCorrectionHighlight, expoCorrectionShift, fixColorsHighlights, halfSizeColorImage, inputColorSpace, inputProfile, medianFilterPasses, NOINPUTCS, NONR, NRThreshold, NRType, outputColorSpace, outputProfile, RAWQuality, RGBInterpolate4Colors, sixteenBitsImage, SRGB, unclipColors, whiteBalance, whiteBalanceArea, and whitePoint.
Referenced by Digikam::DRawDecoding::optimizeTimeLoading().
bool Digikam::DRawDecoderSettings::autoBrightness |
If false, use a fixed white level, ignoring the image histogram.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
int Digikam::DRawDecoderSettings::blackPoint |
Black Point value of output image.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
double Digikam::DRawDecoderSettings::brightness |
Brightness of output image.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
int Digikam::DRawDecoderSettings::customWhiteBalance |
The temperature and the green multiplier of the custom white balance
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
double Digikam::DRawDecoderSettings::customWhiteBalanceGreen |
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
bool Digikam::DRawDecoderSettings::dcbEnhanceFl |
Turn on the DCB interpolation with enhance interpolated colors.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
int Digikam::DRawDecoderSettings::dcbIterations |
For DCB interpolation.
Number of DCB median filtering correction passes. -1 : disable (default) 1-10 : DCB correction passes
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
QString Digikam::DRawDecoderSettings::deadPixelMap |
Path to text file including dead pixel list.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), and optimizeTimeLoading().
bool Digikam::DRawDecoderSettings::DontStretchPixels |
For cameras with non-square pixels, do not stretch the image to its correct aspect ratio. In any case, this option guarantees that each output pixel corresponds to one RAW pixel.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
bool Digikam::DRawDecoderSettings::enableBlackPoint |
Turn on the black point setting to decode RAW image.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
bool Digikam::DRawDecoderSettings::enableWhitePoint |
Turn on the white point setting to decode RAW image.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
bool Digikam::DRawDecoderSettings::expoCorrection |
Turn on the Exposure Correction before interpolation.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
double Digikam::DRawDecoderSettings::expoCorrectionHighlight |
Amount of highlight preservation for exposure correction before interpolation in E.V. Usable range is from 0.0 (linear exposure shift, highlights may blow) to 1.0 (maximum highlights preservation) This settings can only take effect if expoCorrectionShift > 1.0.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
double Digikam::DRawDecoderSettings::expoCorrectionShift |
Shift of Exposure Correction before interpolation in linear scale. Usable range is from 0.25 (darken image 1 stop : -2EV) to 8.0 (lighten ~1.5 photographic stops : +3EV).
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
bool Digikam::DRawDecoderSettings::fixColorsHighlights |
If true, images with overblown channels are processed much more accurate, without 'pink clouds' (and blue highlights under tungsten lamps).
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
bool Digikam::DRawDecoderSettings::halfSizeColorImage |
Half-size color image decoding (twice as fast as "enableRAWQuality"). Turn on this option to reduce time loading to render histogram for example, no to render an image to screen.
Referenced by Digikam::LoadingDescription::cacheKey(), Digikam::PreviewLoadThread::createLoadingDescription(), Digikam::DRawDecoder::decodeHalfRAWImage(), Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::LoadingDescription::isReducedVersion(), Digikam::LoadingDescription::lookupCacheKeys(), Digikam::FrameUtils::makeFramedImage(), Digikam::operator<<(), operator=(), operator==(), and optimizeTimeLoading().
InputColorSpace Digikam::DRawDecoderSettings::inputColorSpace |
The input color profile used to decoded RAW data. See OutputColorProfile values for details.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::setSettings(), and Digikam::DRawDecoderWidget::settings().
QString Digikam::DRawDecoderSettings::inputProfile |
Path to custom input ICC profile to define the camera's raw colorspace.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::setSettings(), and Digikam::DRawDecoderWidget::settings().
int Digikam::DRawDecoderSettings::medianFilterPasses |
After interpolation, clean up color artifacts by repeatedly applying a 3x3 median filter to the R-G and B-G channels.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
int Digikam::DRawDecoderSettings::NRThreshold |
Noise reduction threshold value. Null value disable NR. Range is between 100 and 1000. For IMPULSENR : set the amount of Luminance impulse denoise.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
NoiseReduction Digikam::DRawDecoderSettings::NRType |
Noise reduction method to apply before demosaicing.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
OutputColorSpace Digikam::DRawDecoderSettings::outputColorSpace |
The output color profile used to decoded RAW data. See OutputColorProfile values for details.
Referenced by Digikam::EditorWindow::applyIOSettings(), Digikam::QueuePool::applySettings(), Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), DigikamRAWDImgPlugin::DImgRAWLoader::load(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
QString Digikam::DRawDecoderSettings::outputProfile |
Path to custom output ICC profile to define the color workspace.
Referenced by Digikam::EditorWindow::applyIOSettings(), Digikam::QueuePool::applySettings(), Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), DigikamRAWDImgPlugin::DImgRAWLoader::load(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::setSettings(), and Digikam::DRawDecoderWidget::settings().
DecodingQuality Digikam::DRawDecoderSettings::RAWQuality |
RAW quality decoding factor value. See DecodingQuality values for details.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::FrameUtils::makeFramedImage(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
bool Digikam::DRawDecoderSettings::RGBInterpolate4Colors |
Turn on RAW file decoding using RGB interpolation as four colors.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::FrameUtils::makeFramedImage(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
bool Digikam::DRawDecoderSettings::sixteenBitsImage |
Turn on RAW file decoding in 16 bits per color per pixel instead 8 bits.
Referenced by Digikam::LoadingDescription::cacheKey(), Digikam::PreviewLoadThread::createLoadingDescription(), Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), DigikamRAWDImgPlugin::DImgRAWLoader::load(), Digikam::DRawDecoder::loadFullImage(), Digikam::LoadingDescription::lookupCacheKeys(), Digikam::FrameUtils::makeFramedImage(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), DigikamRAWDImgPlugin::DImgRAWLoader::sixteenBit(), and Digikam::DRawDecoderWidget::writeSettings().
int Digikam::DRawDecoderSettings::unclipColors |
Unclip Highlight color level: 0 = Clip all highlights to solid white. 1 = Leave highlights unclipped in various shades of pink. 2 = Blend clipped and unclipped values together for a gradual fade to white. 3-9 = Reconstruct highlights. Low numbers favor whites; high numbers favor colors.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
WhiteBalance Digikam::DRawDecoderSettings::whiteBalance |
White balance type to use. See WhiteBalance values for detail
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().
QRect Digikam::DRawDecoderSettings::whiteBalanceArea |
Rectangle used to calculate the white balance by averaging the region of image.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), and optimizeTimeLoading().
int Digikam::DRawDecoderSettings::whitePoint |
White Point value of output image.
Referenced by Digikam::DRawDecoding::decodingSettingsFromXml(), Digikam::DRawDecoding::decodingSettingsToXml(), Digikam::operator<<(), operator=(), operator==(), optimizeTimeLoading(), Digikam::DRawDecoderWidget::readSettings(), Digikam::DRawDecoderWidget::setSettings(), Digikam::DRawDecoderWidget::settings(), and Digikam::DRawDecoderWidget::writeSettings().