15#ifndef QGSLEASTSQUARES_H
16#define QGSLEASTSQUARES_H
20#include "qgis_analysis.h"
39 static void linear(
const QVector<QgsPointXY> &sourceCoordinates,
40 const QVector<QgsPointXY> &destinationCoordinates,
41 QgsPointXY &origin,
double &pixelXSize,
double &pixelYSize );
47 static void helmert(
const QVector<QgsPointXY> &sourceCoordinates,
48 const QVector<QgsPointXY> &destinationCoordinates,
49 QgsPointXY &origin,
double &pixelSize,
double &rotation );
52 static void affine( QVector<QgsPointXY> mapCoords,
53 QVector<QgsPointXY> pixelCoords );
61 static void projective(
const QVector<QgsPointXY> &sourceCoordinates,
62 const QVector<QgsPointXY> &destinationCoordinates,
Utilities for calculation of least squares based transformations.
A class to represent a 2D point.