Georeferencing of UAV photos
(→Registration of ground control points (GCP)) |
(→Transformation and Resampling) |
||
Line 31: | Line 31: | ||
== Transformation and Resampling == | == Transformation and Resampling == | ||
− | * Define the transformation settings. Click on [[File:transform_settings_button.png]] | + | * Define the transformation settings. Click on [[File:transform_settings_button.png]] and determine the following settings: |
− | and determine the following settings: [[File:Qgis_geo_transform.png|800px]] | + | |
+ | [[File:Qgis_geo_transform.png|800px]] | ||
+ | |||
The Target SRS should be the same as the GCP coordinates and the project CRS: ''EPSG: 32632, WGS84/ UTM Zone 32N''. First, try the transformation type ''Linear''. The horizontal ''Residuals'' are now displayed in the last column of the GCP table. In the first column of the table individual points can be switch on or off. Check if the mean error (root mean square error) shown in the grey bar at the bottom of the window can be improved. Change the transformation type to ''Helmert''. | The Target SRS should be the same as the GCP coordinates and the project CRS: ''EPSG: 32632, WGS84/ UTM Zone 32N''. First, try the transformation type ''Linear''. The horizontal ''Residuals'' are now displayed in the last column of the GCP table. In the first column of the table individual points can be switch on or off. Check if the mean error (root mean square error) shown in the grey bar at the bottom of the window can be improved. Change the transformation type to ''Helmert''. | ||
* Click on {{button|text=Play}} [[File:play.png]] to create the final georeferenced image file that is loaded into the main Qgis viewer. Compare the results of different transformation types (e.g. Helmert and Thin Plate Spline) | * Click on {{button|text=Play}} [[File:play.png]] to create the final georeferenced image file that is loaded into the main Qgis viewer. Compare the results of different transformation types (e.g. Helmert and Thin Plate Spline) |
Revision as of 13:14, 25 May 2020
Contents |
Preparation
- Open Qgis with a new project.
- Prepare main Qgis map viewer:
- Load a vector file with Ground Control Points (GCPs) that were signalized on ground and measured by a high precision differential GNSS reciever : geodata_w02/gcp_points.gpkg.
Note, the Project Coordinate system switches automatically to EPSG:32632 (WGS84 / UTM zone 32N) which may be checked on the lower right of the QGIS Map Canvas.
- Add an aerial ortho photo map as background layer. Open the Datasource manager and establish a connection to a map server: Browser --> XYZ Tiles --> Google Satellite.
- Make sure that the GCP vector file on top of Google Satellite in the Layers panel by dragging and droping the file.
- Right click on the vector layer name in the Layers panel and Zoom to layer.
- Change the color of the point markers: Right click on Layer name in the Layers panel Layer Properties--> Style
- Show labels of the GCP layer: Layer Properties--> Label. Label with the first column ("comment").
Registration of ground control points (GCP)
- Open Raster –-> Georeferencer -–> Georeferencer.
- Open a UAV photo that has no spatial reference system (raw image coordinates): geodata_w02/mavic_ortho_rgba.tif.
- Georeferencer --> Settings --> Configure Georeferencer. Check the box beside Show IDs of ground control points. And choose residual units: Pixels.
- Add ground control points. First, navigate to a ground control point in the UAV image (e.g. cross signal). Zoom in with the magnifying glass or use the mouse roller.
- Zoom in to a point which you can recognize on both the UAV photo and on Google maps in the main Qgis viewer.
- Click on Add point on toolbar.
. A cross shows up. Move the cursor to the first ground control point (cross signal).
Zoom in using the mouse roller, mark the cross center with the cursor, register the position in the image by a left click. A new window Enter map coordinates opens. Click From map canvas. The Georeferencer window will now minimize automatically.
- Pan and zoom to the same point in Google maps in the main viewer. Left click on the pint: the coordinates in the COordinate Reference System of the main viewer are now transferred directly to the "Enter map cordinates" window. OK.
- Zoom to the next control point, activate Add point and continue until 5 GCPs (S01, S02, S03, S04, S06) are registered.
- For changing the position of a point that is already defined activate Move GCP point. . Move the point by clicking on it in the Georeferencer viewer.
- For deleting a GCP activate Move GCP point and click on it. Alternatively click on a point in the GCP table, right click delete.
- Save the registered GCP points. File --> Save GCP points as .... Save.
Transformation and Resampling
The Target SRS should be the same as the GCP coordinates and the project CRS: EPSG: 32632, WGS84/ UTM Zone 32N. First, try the transformation type Linear. The horizontal Residuals are now displayed in the last column of the GCP table. In the first column of the table individual points can be switch on or off. Check if the mean error (root mean square error) shown in the grey bar at the bottom of the window can be improved. Change the transformation type to Helmert.
- Click on Play to create the final georeferenced image file that is loaded into the main Qgis viewer. Compare the results of different transformation types (e.g. Helmert and Thin Plate Spline)
Quality Check
- Double click on the reprojected layer to open Layer Properties --> Transparency and change Global transparency to about 60% by moving the slider. Apply.
- Compare the geometry of the reprojected layer with Google maps.
- Compare the results of two transformation types Helmert and Thin Plate Spline.