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

@@ -168,7 +168,7 @@ private:
class LensCorrection {
public:
virtual ~LensCorrection() {}
virtual void correctDistortion(double &x, double &y, int cx, int cy, double scale) const = 0;
virtual void correctDistortion(double &x, double &y, int cx, int cy) const = 0;
virtual bool isCACorrectionAvailable() const = 0;
virtual void correctCA(double &x, double &y, int cx, int cy, int channel) const = 0;
virtual void processVignette(int width, int height, float** rawData) const = 0;
@@ -196,7 +196,7 @@ public:
);
void correctDistortion(double &x, double &y, int cx, int cy, double scale) const override; // MUST be the first stage
void correctDistortion(double &x, double &y, int cx, int cy) const override; // MUST be the first stage
bool isCACorrectionAvailable() const override;
void correctCA(double& x, double& y, int cx, int cy, int channel) const override;
void processVignette(int width, int height, float** rawData) const override;