use a relative height (10% of the full height) instead of an absolute one in histogram matching

This commit is contained in:
Alberto Griggio
2018-01-17 23:09:49 +01:00
parent 7bcc8ae236
commit 931ee95620

View File

@@ -134,14 +134,13 @@ void RawImageSource::getAutoMatchedToneCurve(std::vector<double> &outCurve)
std::cout << "performing histogram matching for " << getFileName() << " on the embedded thumbnail" << std::endl; std::cout << "performing histogram matching for " << getFileName() << " on the embedded thumbnail" << std::endl;
} }
const int rheight = 200;
ProcParams neutral; ProcParams neutral;
std::unique_ptr<IImage8> target; std::unique_ptr<IImage8> target;
{ {
int tr = TR_NONE; int tr = TR_NONE;
int fw, fh; int fw, fh;
getFullSize(fw, fh, tr); getFullSize(fw, fh, tr);
int skip = fh / rheight; int skip = 10;
PreviewProps pp(0, 0, fw, fh, skip); PreviewProps pp(0, 0, fw, fh, skip);
ColorTemp currWB = getWB(); ColorTemp currWB = getWB();
std::unique_ptr<Imagefloat> image(new Imagefloat(int(fw / skip), int(fh / skip))); std::unique_ptr<Imagefloat> image(new Imagefloat(int(fw / skip), int(fh / skip)));