QGIS API Documentation 3.99.0-Master (21b3aa880ba)
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 "qgis_analysis.h"
19#include "qgspointxy.h"
20
21#include <QVector>
22
23#define SIP_NO_FILE
24
32class ANALYSIS_EXPORT QgsLeastSquares
33{
34 public:
35
39 static void linear( const QVector<QgsPointXY> &sourceCoordinates, const QVector<QgsPointXY> &destinationCoordinates, QgsPointXY &origin, double &pixelXSize, double &pixelYSize );
40
45 static void helmert( const QVector<QgsPointXY> &sourceCoordinates, const QVector<QgsPointXY> &destinationCoordinates, QgsPointXY &origin, double &pixelSize, double &rotation );
46
47#if 0
48 static void affine( QVector<QgsPointXY> mapCoords,
49 QVector<QgsPointXY> pixelCoords );
50
51#endif
52
57 static void projective( const QVector<QgsPointXY> &sourceCoordinates, const QVector<QgsPointXY> &destinationCoordinates, double H[9] );
58};
59
60#endif // QGSLEASTSQUARES_H
Utilities for calculation of least squares based transformations.
static void helmert(const QVector< QgsPointXY > &sourceCoordinates, const QVector< QgsPointXY > &destinationCoordinates, QgsPointXY &origin, double &pixelSize, double &rotation)
Transforms the point at origin in-place, using a helmert transformation calculated from the list of s...
static void projective(const QVector< QgsPointXY > &sourceCoordinates, const QVector< QgsPointXY > &destinationCoordinates, double H[9])
Calculates projective parameters from the list of source and destination Ground Control Points (GCPs)...
static void linear(const QVector< QgsPointXY > &sourceCoordinates, const QVector< QgsPointXY > &destinationCoordinates, QgsPointXY &origin, double &pixelXSize, double &pixelYSize)
Transforms the point at origin in-place, using a linear transformation calculated from the list of so...
Represents a 2D point.
Definition qgspointxy.h:60