digiKam
Loading...
Searching...
No Matches
Digikam::DRawDecoderSettings Class Reference

#include <drawdecodersettings.h>

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 ()=default
 
 DRawDecoderSettings (const DRawDecoderSettings &o)
 
DRawDecoderSettingsoperator= (const DRawDecoderSettings &o)
 
bool operator== (const DRawDecoderSettings &o) const
 
void optimizeTimeLoading ()
 
 ~DRawDecoderSettings ()=default
 

Public Attributes

bool autoBrightness = true
 
int blackPoint = 0
 
double brightness = 1.0
 
int customWhiteBalance = 6500
 
double customWhiteBalanceGreen = 1.0
 
bool dcbEnhanceFl = false
 
int dcbIterations = -1
 For DCB interpolation.
 
QString deadPixelMap
 
bool DontStretchPixels = false
 
bool enableBlackPoint = false
 
bool enableWhitePoint = false
 
bool expoCorrection = false
 
double expoCorrectionHighlight = 0.0
 
double expoCorrectionShift = 1.0
 
bool fixColorsHighlights = false
 
bool halfSizeColorImage = false
 
InputColorSpace inputColorSpace = NOINPUTCS
 
QString inputProfile
 
int medianFilterPasses = 0
 
int NRThreshold = 0
 
NoiseReduction NRType = NONR
 
OutputColorSpace outputColorSpace = SRGB
 
QString outputProfile
 
DecodingQuality RAWQuality = BILINEAR
 
bool RGBInterpolate4Colors = false
 
bool sixteenBitsImage = false
 
int unclipColors = 0
 
WhiteBalance whiteBalance = CAMERA
 
QRect whiteBalanceArea
 
int whitePoint = 0
 

Member Enumeration Documentation

◆ DecodingQuality

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 

◆ InputColorSpace

Input color profile used to decoded image NOINPUTCS: No input color profile. EMBEDDED: Use the camera profile embedded in RAW file if exist. CUSTOMINPUTCS: Use a custom input color space profile.

Enumerator
NOINPUTCS 
EMBEDDED 
CUSTOMINPUTCS 

◆ NoiseReduction

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 

◆ OutputColorSpace

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 

◆ WhiteBalance

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 

Constructor & Destructor Documentation

◆ DRawDecoderSettings() [1/2]

Digikam::DRawDecoderSettings::DRawDecoderSettings ( )
default

Standard constructor with default settings

References Digikam::operator==().

◆ DRawDecoderSettings() [2/2]

Digikam::DRawDecoderSettings::DRawDecoderSettings ( const DRawDecoderSettings o)

Equivalent to the copy constructor

◆ ~DRawDecoderSettings()

Digikam::DRawDecoderSettings::~DRawDecoderSettings ( )
default

Standard destructor

Member Function Documentation

◆ operator=()

◆ operator==()

◆ optimizeTimeLoading()

Member Data Documentation

◆ autoBrightness

◆ blackPoint

◆ brightness

◆ customWhiteBalance

◆ customWhiteBalanceGreen

◆ dcbEnhanceFl

◆ dcbIterations

int Digikam::DRawDecoderSettings::dcbIterations = -1

◆ deadPixelMap

QString Digikam::DRawDecoderSettings::deadPixelMap

◆ DontStretchPixels

bool Digikam::DRawDecoderSettings::DontStretchPixels = false

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().

◆ enableBlackPoint

◆ enableWhitePoint

◆ expoCorrection

◆ expoCorrectionHighlight

double Digikam::DRawDecoderSettings::expoCorrectionHighlight = 0.0

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().

◆ expoCorrectionShift

double Digikam::DRawDecoderSettings::expoCorrectionShift = 1.0

◆ fixColorsHighlights

bool Digikam::DRawDecoderSettings::fixColorsHighlights = false

◆ halfSizeColorImage

bool Digikam::DRawDecoderSettings::halfSizeColorImage = false

◆ inputColorSpace

InputColorSpace Digikam::DRawDecoderSettings::inputColorSpace = NOINPUTCS

◆ inputProfile

◆ medianFilterPasses

◆ NRThreshold

int Digikam::DRawDecoderSettings::NRThreshold = 0

◆ NRType

◆ outputColorSpace

◆ outputProfile

◆ RAWQuality

◆ RGBInterpolate4Colors

◆ sixteenBitsImage

◆ unclipColors

int Digikam::DRawDecoderSettings::unclipColors = 0

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

◆ whiteBalanceArea

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().

◆ whitePoint


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