Remove scale parameter from distortion correction

Scale is no longer useful in LensCorrection::correctDistortion. Remove
the scale parameter from the functions.
This commit is contained in:
Lawrence
2020-01-02 18:33:35 -08:00
parent 512517327f
commit b266cb7ca3
5 changed files with 16 additions and 20 deletions

View File

@@ -46,7 +46,7 @@ LFModifier::operator bool() const
}
void LFModifier::correctDistortion(double &x, double &y, int cx, int cy, double scale) const
void LFModifier::correctDistortion(double &x, double &y, int cx, int cy) const
{
if (!data_) {
return;
@@ -67,8 +67,6 @@ void LFModifier::correctDistortion(double &x, double &y, int cx, int cy, double
x -= cx;
y -= cy;
}
x *= scale;
y *= scale;
}