mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
27 lines
591 B
C++
27 lines
591 B
C++
#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
|