Update params.h

main
WilliamLiuAtCPC 3 years ago committed by GitHub
parent 1801bf09ee
commit de1c8ee1b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,27 +20,49 @@ class RawpyArgs{
int output_bps = 16; int output_bps = 16;
}; };
class Parameters{ class Options{
public:
std::string input = "";
std::string output = "";
std::string mode = "full"; //'full' 'align' 'merge' 'finish'
int reference = 0;
float temporalfactor=75.0;
float spatialfactor = 0.1;
int ltmGain=-1;
double gtmContrast=0.075;
int verbose=2; // (0, 1, 2, 3, 4, 5)
};
class Tuning{
public: public:
std::string tuning_ltmGain = "auto"; std::string ltmGain = "auto";
double tuning_gtmContrast = 0.075; double gtmContrast = 0.075;
std::vector<float> sharpenAmount{1,0.5,0.5};
std::vector<float> sharpenSigma{1,2,4};
std::vector<float> sharpenThreshold{0.02,0.04,0.06};
};
class Parameters{
public:
std::unordered_map<std::string,bool> flags{ std::unordered_map<std::string,bool> flags{
{"writeReferenceImage",true}, {"writeReferenceImage",true},
{"writeGammaReference", true}, {"writeGammaReference", true},
{"writeMergedImage", false}, {"writeMergedImage", true},
{"writeGammaMerged", true}, {"writeGammaMerged", true},
{"writeShortExposure", false}, {"writeShortExposure", true},
{"writeLongExposure", false}, {"writeLongExposure", true},
{"writeFusedExposure", false}, {"writeFusedExposure", true},
{"writeLTMImage", false}, {"writeLTMImage", true},
{"writeLTMGamma", false}, {"writeLTMGamma", true},
{"writeGTMImage", false}, {"writeGTMImage", true},
{"writeReferenceFinal", true}, {"writeReferenceFinal", true},
{"writeFinalImage", true} {"writeFinalImage", true}
}; };
RawpyArgs rawpyArgs; RawpyArgs rawpyArgs;
Options options;
Tuning tuning;
Parameters()= default; Parameters()= default;

Loading…
Cancel
Save