QGIS API Documentation 3.37.0-Master (614ebf5f6b2)
Searching...
No Matches
QgsLeastSquares Class Reference

Utilities for calculation of least squares based transformations. More...

`#include <qgsleastsquares.h>`

## Static Public Member Functions

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 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 source and destination Ground Control Points (GCPs).

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).

## Detailed Description

Utilities for calculation of least squares based transformations.

Note
Not available in Python bindings.
Since
QGIS 3.20

Definition at line 32 of file qgsleastsquares.h.

## ◆ helmert()

 void QgsLeastSquares::helmert ( const QVector< QgsPointXY > & sourceCoordinates, const QVector< QgsPointXY > & destinationCoordinates, QgsPointXY & origin, double & pixelSize, double & rotation )
static

Transforms the point at origin in-place, using a helmert transformation calculated from the list of source and destination Ground Control Points (GCPs).

Exceptions
 QgsNotSupportedException on QGIS built without GSL.

Definition at line 69 of file qgsleastsquares.cpp.

## ◆ linear()

 void QgsLeastSquares::linear ( const QVector< QgsPointXY > & sourceCoordinates, const QVector< QgsPointXY > & destinationCoordinates, QgsPointXY & origin, double & pixelXSize, double & pixelYSize )
static

Transforms the point at origin in-place, using a linear transformation calculated from the list of source and destination Ground Control Points (GCPs).

Definition at line 30 of file qgsleastsquares.cpp.

## ◆ projective()

 void QgsLeastSquares::projective ( const QVector< QgsPointXY > & sourceCoordinates, const QVector< QgsPointXY > & destinationCoordinates, double H[9] )
static

Calculates projective parameters from the list of source and destination Ground Control Points (GCPs).

Exceptions
 QgsNotSupportedException on QGIS built without GSL.

Definition at line 259 of file qgsleastsquares.cpp.

The documentation for this class was generated from the following files:
• /build/qgis-3.37.0+git20240612+614ebf5f6b2+99sid/src/analysis/georeferencing/qgsleastsquares.h
• /build/qgis-3.37.0+git20240612+614ebf5f6b2+99sid/src/analysis/georeferencing/qgsleastsquares.cpp