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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user