added support for CA correction via lensfun

Performance could be improved (see the comments marked "agriggio" in iptransform.cc and rtlensfun.cc)
This commit is contained in:
Alberto Griggio
2017-10-26 23:55:52 +02:00
parent a29287eaa0
commit 830fd6fdbb
3 changed files with 44 additions and 2 deletions

View File

@@ -254,6 +254,16 @@ void LensProfilePanel::updateLensfunWarning()
}
ckbUseVign->set_sensitive(l.hasVignettingCorrection());
ckbUseDist->set_sensitive(l.hasDistortionCorrection());
ckbUseCA->set_sensitive(l.hasCACorrection());
if (!isRaw || !l.hasVignettingCorrection()) {
ckbUseVign->set_active(false);
}
if (!l.hasDistortionCorrection()) {
ckbUseDist->set_active(false);
}
if (!l.hasCACorrection()) {
ckbUseCA->set_active(false);
}
}
}