QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
qgsleastsquares.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsleastsquares.h
3 --------------------------------------
4 Date : Sun Sep 16 12:03:47 AKDT 2007
5 Copyright : (C) 2007 by Gary E. Sherman
6 Email : sherman at mrcc dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef QGSLEASTSQUARES_H
16#define QGSLEASTSQUARES_H
17
18#include <QVector>
19
20#include "qgis_analysis.h"
21#include "qgspointxy.h"
22
23#define SIP_NO_FILE
24
32class ANALYSIS_EXPORT QgsLeastSquares
33{
34 public:
38 static void linear( const QVector<QgsPointXY> &sourceCoordinates, const QVector<QgsPointXY> &destinationCoordinates, QgsPointXY &origin, double &pixelXSize, double &pixelYSize );
39
44 static void helmert( const QVector<QgsPointXY> &sourceCoordinates, const QVector<QgsPointXY> &destinationCoordinates, QgsPointXY &origin, double &pixelSize, double &rotation );
45
46#if 0
47 static void affine( QVector<QgsPointXY> mapCoords,
48 QVector<QgsPointXY> pixelCoords );
49
50#endif
51
56 static void projective( const QVector<QgsPointXY> &sourceCoordinates, const QVector<QgsPointXY> &destinationCoordinates, double H[9] );
57};
58
59#endif // QGSLEASTSQUARES_H
Utilities for calculation of least squares based transformations.
A class to represent a 2D point.
Definition qgspointxy.h:60