QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 
32 class ANALYSIS_EXPORT QgsLeastSquares
33 {
34  public:
35 
39  static void linear( const QVector<QgsPointXY> &sourceCoordinates,
40  const QVector<QgsPointXY> &destinationCoordinates,
41  QgsPointXY &origin, double &pixelXSize, double &pixelYSize );
42 
47  static void helmert( const QVector<QgsPointXY> &sourceCoordinates,
48  const QVector<QgsPointXY> &destinationCoordinates,
49  QgsPointXY &origin, double &pixelSize, double &rotation );
50 
51 #if 0
52  static void affine( QVector<QgsPointXY> mapCoords,
53  QVector<QgsPointXY> pixelCoords );
54 
55 #endif
56 
61  static void projective( const QVector<QgsPointXY> &sourceCoordinates,
62  const QVector<QgsPointXY> &destinationCoordinates,
63  double H[9] );
64 
65 };
66 
67 #endif // QGSLEASTSQUARES_H
QgsLeastSquares
Utilities for calculation of least squares based transformations.
Definition: qgsleastsquares.h:32
QgsPointXY
A class to represent a 2D point.
Definition: qgspointxy.h:58
qgspointxy.h