QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
analysis
georeferencing
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
32
class
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
QgsLeastSquares
Utilities for calculation of least squares based transformations.
Definition
qgsleastsquares.h:33
QgsLeastSquares::helmert
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...
Definition
qgsleastsquares.cpp:68
QgsLeastSquares::projective
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)...
Definition
qgsleastsquares.cpp:249
QgsLeastSquares::linear
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...
Definition
qgsleastsquares.cpp:31
QgsPointXY
Represents a 2D point.
Definition
qgspointxy.h:62
qgspointxy.h
Generated on
for QGIS API Documentation by
1.17.0