gvellut / FreehandRasterGeoreferencer

QGIS plugin for the interactive georeferencing of rasters
GNU General Public License v2.0
50 stars 13 forks source link

More general affine transformations #40

Open Houska1 opened 3 years ago

Houska1 commented 3 years ago

Thank you for this useful georeferencing tool.

Have you considered adding more general affine transformations? I recognize you are limited by QPainter but I see that QPainter::setWorldMatrix and QPainter::shear do offer additional flexibility beyond translate, rotate, xscale, yscale. Not sure if that is helpful.

A more general affine/perspective ability would be super useful for georeferencing UAV/drone photos in particular. Especially a "4 pt" mode defining an affine transformation of the image with different scale on its front and back edge (arising from UAV/gimbal pitch) plus skew (that may arise from UAV roll).

Thanks, Martin

gvellut commented 3 years ago

Thank you for your feedback.

Indeed, Qt allows a general affine transformation easily enough and adding it to the plugin should be pretty straightforward I think, using the existing tools as a model:

Possibly I will implement it myself (I cannot promise a completion date though...) but I am open to a contribution.