QGIS/plugins/georeferencer/qgsleastsquares.h

27 lines
591 B
C
Raw Normal View History

#ifndef QGSLEASTSQUARES_H
#define QGSLEASTSQUARES_H
#include <vector>
#include <cstdarg>
#include <stdexcept>
#include "qgspoint.h"
class QgsLeastSquares {
public:
static void linear(std::vector<QgsPoint> mapCoords,
std::vector<QgsPoint> pixelCoords,
QgsPoint& origin, double& pixelSize);
static void helmert(std::vector<QgsPoint> mapCoords,
std::vector<QgsPoint> pixelCoords,
QgsPoint& origin, double& pixelSize, double& rotation);
static void affine(std::vector<QgsPoint> mapCoords,
std::vector<QgsPoint> pixelCoords);
};
#endif