This tutorial outlines the workflow for processing UAV imagery using Geomatica OrthoEngine. This tutorial shows how to import data, automatically collect tie points, extract a DEM, generate orthos and finally generate a mosaic.
For this tutorial we will be using a UAV dataset from senseFly of a quarry in Switzerland. This data was collected by a Canon IXUS 220HS camera. You can download the data from the following link: https://pcigeomatics.sharefile.com/d-s9c0c1c5827c458ab
To begin, you will need to create a new OrthoEngine project.
- Open OrthoEngine from the Geomatica toolbar.
- On the OrthoEngine toolbar navigate to File > New. The Project Information window will open.
- Give your project a Filename, Name and Description
- Select Aerial Photographyas the Math Modeling Method
- Select Digital/Video under Options
- Select Compute from GCPs and tie points under Exterior orientation
- Click OK
- The Set Projection window will appear. Leave the boxes blank and click Cancel on this window. A popup will appear to tell you that the projection information will be read in from the first image.
Set Camera Calibration
The next step in the process is to import the camera calibration information. The camera calibration information for this project was calculated externally. In order to process your own UAV datasets in Geomatica you do need high-quality camera calibration to enter into OrthoEngine.
- On the OrthoEngine toolbar click the Set camera calibration icon
- The Digital/Video Camera Calibration Information window opens.
- We will now import the Camera Calibration information. Included with the tutorial data is the file camera_calibration.xml. In the camera calibration window click Import and choose that file.
- The calibration information from that file is imported and the camera calibration window is automatically filled.
- Click OK
Now that the camera calibration is set we can input the JPEG files.
- On the OrthoEngine toolbar switch the processing step to Data Input
- Click Open a new or existing image.
- Click Add Image… when the Open Image window appears
- Navigate to the location of the .jpeg images
- Select all of the JPEGs and click Open
- When prompted, choose YES to import the files to PIX format
- Click OK in the Multiple File selection window
- The new pix files will now appear in the Open Image window
- These JPEG images contain Exif tags and OrthoEngine imports these tags as metadata. Therefore, the exterior orientation (EO) is computed automatically. The following Exif tags are required for automatic computation of the EO :
In the case of data that does not contain Exif tags, you would need to import the exterior orientation data from a text file.
Collect Tie Points
We will now need to collect tie points in order to improve the math model and ensure that the images align correctly.
- On the OrthoEngine toolbar switch the processing step to GCP/TP Collection
- From the OrthoEngine toolbar, click the Automatic Tie Point Collection icon
- In this window change the Matching method to FBM: Feature-based matching. This is a new tie point collection method that was added in Geomatica Banff
- For this tutorial the default parameters will be used
- Click Collect Tie Points
- Once the collection process is complete a pop-up window will appear specifying the number of tie points that were found.
After you have collected TPs you can further refine them in the Point Thinning and Refinement window. This window allows you to automatically run thinning to remove redundant points and refinement to remove points with high RMS.
- Click the Point Thinning and Refinement
- Leave Thin Points We will only Refine Points.
- Check off Deactivate images with insufficient TPs.
- Leave the rest of the parameters as their default values.
- Click Run
- A progress window will appear to show the steps that have been run as part of the refinement process.
- Click Accept Changes on the Point Thinning and Refinement window.
GCP Collection (Optional)
In this tutorial ground control points (GCPs) are not collected. However, when running this same process with your own datasets you can collect GCPs to improve georeferencing of the dataset. You would collect GCPs on the images using an existing georeferenced image. The automatic GCP collection process is fully outlined in the Airphoto Orthorectification tutorial.
From the OrthoEngine toolbar open the Residuals report icon.
You can view the collected TPs in this window. Note the low X and Y RMS of 0.5. Additional information on the Residual Report is available from the Help.
Generating Epipolar Images
The next step in the process will be to extract a DEM. We will first create the epipolar images and then run the DEM Extraction process.
- Change the OrthoEngine processing step to DEM From Stereo.
- Click on the Epipolar Image
- For Epipolar selection, leave the default - Optimum pairs.
- Click Add Epipolar Pairs To Table.
- Change the Downsample factor to 2 – This parameter controls the number of pixels that are used from the raw images to generate the epipolar image. Changing this to 2 will increase the processing speed.
- Click Generate Pairs
The next step in the process is to Extract the DEM from the epipolar pairs.
- On the OrthoEngine toolbar, select Extract DEM automatically.
- Click Select All under the Stereo pairs table.
- Check off the Epipolar Tracking
- Check off the Create geocoded DEM
- Set an Output file name for the geocoded DEM.
- Set the X and Y resolution to 0.41.
- Change the Output option to Merge.
- Click Extract DEM.
* Note – When working on your own datasets can always edit the DEM using the Geomatica DEM Editing tool before generating the orthos. You can check the DEM Editing tutorial for detailed information on editing.
Generate Ortho Images
You can now generate the orthorectified images.
- Change the OrthoEngine processing step to Ortho Generation
- Click the Schedule ortho generation icon
- In the Ortho Image Production window click >> to add all the Available images to the Images to process
- Select DEM File and then Browse to the geocoded DEM that you generated in the previous step.
- In the DEM File pop-up window select 1 [32R] Merged DEM and then click OK
- Click Generate Orthos
The orthorectified images are now generated and you can create a mosaic. You can check the full automatic mosaicking tutorial for additional information on preparing, editing and generating mosaics in the Mosaic Tool.
- Change the OrthoEngine processing step to Mosaic
- Choose the Mosaicking The Mosaic Tool is then opened and the ortho images are automatically loaded in the New Project Wizard – Source Images window.
- Click Next
- On the Mosaic Definition window set the Output file. A single mosaic file will be generated.
- In the Mosaic Preparation window under Compute Cutlines change the Constrain parameter to Auto.
- Check off Sort Images
- Leave the rest of the parameters as default.
- Click Generate Mosaic - For this tutorial we will choose to generate the mosaic directly from this window. However, you can also choose Generate Preview and then further edit the mosaicking options and colour balancing before generating the mosaic as outlined in the full mosaicking tutorial.
- The mosaic is shown in the Mosaic Preparation window.
- Click Finish
- The full mosaic is then loaded into the Mosaic Tool. You can now open the full mosaic file in Focus.
Clipping Final Mosaic
In this tutorial we are specifically interested in the quarry so we will clip out the area of interest. Provided in the data download is an AOI vector file. This will be used as the clipping layer.
- In Focus open Tools > Clipping/Subsetting
- Under Input make sure that File is the UAV mosaic.
- Under the Available Layers section check off all three mosaic channels.
- Under Output set an output file location and name.
- For the Define clip region switch the Definition Method to Select a clip layer
- Browse to the location of pix.
- Change the Bounds selection to Shape(s) Boundary. The shape of the actual AOI polygon will then be shown.
- Click Clip
- You can now load the clipped mosaic file into Focus to view the final mosaic of the AOI.