LCP: new experimental logic for finding the correct distortion coefficients

This commit is contained in:
Alberto Griggio
2017-06-05 14:21:52 +02:00
parent 982b291a64
commit b39529f7c0
7 changed files with 59 additions and 44 deletions

View File

@@ -814,7 +814,9 @@ private:
if (ipf.needsTransform()) {
Imagefloat* trImg = new Imagefloat (fw, fh);
ipf.transform (baseImg, trImg, 0, 0, 0, 0, fw, fh, fw, fh, imgsrc->getMetaData()->getFocalLen(), imgsrc->getMetaData()->getFocalLen35mm(),
imgsrc->getMetaData()->getFocusDist(), imgsrc->getRotateDegree(), true);
imgsrc->getMetaData()->getFocusDist(),
imgsrc->getMetaData()->getFNumber(),
imgsrc->getRotateDegree(), true);
delete baseImg;
baseImg = trImg;
}