Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Georeferencer: it is not specified how the RMS error value is calculated and why #8659

Open
agiudiceandrea opened this issue Nov 26, 2023 · 0 comments
Labels
georeferencer potentially new chapter

Comments

@agiudiceandrea
Copy link
Contributor

Description

In the Georeferencer documentation it is not specified how the RMS error value is calculated and why.

See https://gis.stackexchange.com/questions/397377/qgis-mean-error-rmse-qgis-georeferencer.
See also: https://issues.qgis.org/issues/2731 / qgis/QGIS#12791 / qgis/QGIS@4d46f19 by @mhugent.

Some hints:

  // Calculate the root mean square error, adjusted for degrees of freedom of the transform
  // Caveat: The number of DoFs is assumed to be even (as each control point fixes two degrees of freedom).
  error = std::sqrt( ( sumVxSquare + sumVySquare ) / ( nPointsEnabled - mGeorefTransform.minimumGcpCount() ) );
    /**
     * Calculates root mean squared error for the currently active
     * ground control points and transform method.
     * Note that the RMSE measure is adjusted for the degrees of freedom of the
     * used polynomial transform.
     * \param error out: the mean error
     * \returns TRUE in case of success
     */
    bool calculateMeanError( double &error ) const;
    double residualTot = std::sqrt( residual.x() * residual.x() +  residual.y() * residual.y() );
                   qgsDoubleToString( std::sqrt( pt->residual().x() * pt->residual().x() + pt->residual().y() * pt->residual().y() ) ) );

Page URL: https://docs.qgis.org/testing/en/docs/user_manual/working_with_raster/georeferencer.html#define-the-transformation-settings

@agiudiceandrea agiudiceandrea changed the title Georeferencer: it is not clear how the RMS error value is calculated and why Georeferencer: it is not specified how the RMS error value is calculated and why Nov 27, 2023
@selmaVH1 selmaVH1 added the georeferencer potentially new chapter label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
georeferencer potentially new chapter
Projects
None yet
Development

No branches or pull requests

2 participants