QGIS API Documentation 3.29.0-Master (006c3c0232)
Static Public Member Functions | List of all members
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). More...
 
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). More...
 
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). More...
 

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.

Member Function Documentation

◆ 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
QgsNotSupportedExceptionon 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
QgsNotSupportedExceptionon QGIS built without GSL.

Definition at line 257 of file qgsleastsquares.cpp.


The documentation for this class was generated from the following files: