Flatfield tool.
This commit is contained in:
@@ -29,6 +29,7 @@ namespace rtengine {
|
||||
namespace procparams {
|
||||
|
||||
const char *RAWParams::methodstring[RAWParams::numMethods]={"eahd", "hphd", "vng4", "dcb", "amaze", "ahd", "fast" };
|
||||
const char *RAWParams::ff_BlurTypestring[RAWParams::numFlatFileBlurTypes]={/*"Parametric",*/ "Area Flatfield", "Vertical Flatfield", "Horizontal Flatfield", "V+H Flatfield"};
|
||||
|
||||
ProcParams::ProcParams () {
|
||||
|
||||
@@ -201,6 +202,9 @@ void ProcParams::setDefaults () {
|
||||
hsvequalizer.hue[i] = 0;
|
||||
}
|
||||
raw.df_autoselect = false;
|
||||
raw.ff_AutoSelect = false;
|
||||
raw.ff_BlurRadius = 32;
|
||||
raw.ff_BlurType = RAWParams::ff_BlurTypestring[RAWParams::area_ff];
|
||||
raw.cared = 0;
|
||||
raw.cablue = 0;
|
||||
raw.ca_autocorrect = false;
|
||||
@@ -431,6 +435,10 @@ int ProcParams::save (Glib::ustring fname) const {
|
||||
// save RAW parameters
|
||||
keyFile.set_string ("RAW", "DarkFrame", raw.dark_frame );
|
||||
keyFile.set_boolean ("RAW", "DarkFrameAuto", raw.df_autoselect );
|
||||
keyFile.set_string ("RAW", "FlatFieldFile", raw.ff_file );
|
||||
keyFile.set_boolean ("RAW", "FlatFieldAutoSelect", raw.ff_AutoSelect );
|
||||
keyFile.set_integer ("RAW", "FlatFieldBlurRadius", raw.ff_BlurRadius );
|
||||
keyFile.set_string ("RAW", "FlatFieldBlurType", raw.ff_BlurType );
|
||||
keyFile.set_boolean ("RAW", "CA", raw.ca_autocorrect );
|
||||
keyFile.set_double ("RAW", "CARed", raw.cared );
|
||||
keyFile.set_double ("RAW", "CABlue", raw.cablue );
|
||||
@@ -754,6 +762,10 @@ if (keyFile.has_group ("HSV Equalizer")) {
|
||||
if (keyFile.has_group ("RAW")) {
|
||||
if (keyFile.has_key ("RAW", "DarkFrame")) raw.dark_frame = keyFile.get_string ("RAW", "DarkFrame" );
|
||||
if (keyFile.has_key ("RAW", "DarkFrameAuto")) raw.df_autoselect = keyFile.get_boolean ("RAW", "DarkFrameAuto" );
|
||||
if (keyFile.has_key ("RAW", "FlatFieldFile")) raw.ff_file = keyFile.get_string ("RAW", "FlatFieldFile" );
|
||||
if (keyFile.has_key ("RAW", "FlatFieldAutoSelect")) raw.ff_AutoSelect = keyFile.get_boolean ("RAW", "FlatFieldAutoSelect" );
|
||||
if (keyFile.has_key ("RAW", "FlatFieldBlurRadius")) raw.ff_BlurRadius = keyFile.get_integer ("RAW", "FlatFieldBlurRadius" );
|
||||
if (keyFile.has_key ("RAW", "FlatFieldBlurType")) raw.ff_BlurType = keyFile.get_string ("RAW", "FlatFieldBlurType" );
|
||||
if (keyFile.has_key ("RAW", "CA")) raw.ca_autocorrect = keyFile.get_boolean ("RAW", "CA" );
|
||||
if (keyFile.has_key ("RAW", "CARed")) raw.cared = keyFile.get_double ("RAW", "CARed" );
|
||||
if (keyFile.has_key ("RAW", "CABlue")) raw.cablue = keyFile.get_double ("RAW", "CABlue" );
|
||||
@@ -949,7 +961,11 @@ bool ProcParams::operator== (const ProcParams& other) {
|
||||
&& resize.width == other.resize.width
|
||||
&& resize.height == other.resize.height
|
||||
&& raw.dark_frame == other.raw.dark_frame
|
||||
&& raw.df_autoselect == other.raw.df_autoselect
|
||||
&& raw.df_autoselect == other.raw.df_autoselect
|
||||
&& raw.ff_file == other.raw.ff_file
|
||||
&& raw.ff_AutoSelect == other.raw.ff_AutoSelect
|
||||
&& raw.ff_BlurRadius == other.raw.ff_BlurRadius
|
||||
&& raw.ff_BlurType == other.raw.ff_BlurType
|
||||
&& raw.dcb_enhance == other.raw.dcb_enhance
|
||||
&& raw.dcb_iterations == other.raw.dcb_iterations
|
||||
&& raw.ccSteps == other.raw.ccSteps
|
||||
|
Reference in New Issue
Block a user