lens profile: report availability of distortion and vignetting
Beside CA, report also distortion and vignetting availability. Rename is${CORRECTION}Available methods to has${CORRECTION}.
This commit is contained in:
@@ -985,11 +985,23 @@ rtengine::LCPMapper::LCPMapper(
|
||||
isFisheye = pProf->isFisheye;
|
||||
}
|
||||
|
||||
bool rtengine::LCPMapper::isCACorrectionAvailable() const
|
||||
bool rtengine::LCPMapper::hasDistortionCorrection() const
|
||||
{
|
||||
// assume lcp always provides distortion correction
|
||||
return true;
|
||||
}
|
||||
|
||||
bool rtengine::LCPMapper::hasCACorrection() const
|
||||
{
|
||||
return enableCA;
|
||||
}
|
||||
|
||||
bool rtengine::LCPMapper::hasVignettingCorrection() const
|
||||
{
|
||||
// assume lcp always provides vignetting correction
|
||||
return true;
|
||||
}
|
||||
|
||||
void rtengine::LCPMapper::correctDistortionAndCA(double &x, double &y, int cx, int cy, int channel) const
|
||||
{
|
||||
correctDistortion(x, y, cx, cy);
|
||||
|
Reference in New Issue
Block a user