GEOSPATIAL DIGITAL ASSETS GALLERY

a collection of advanced IOT tools and libraries, which covers but not limit to geospatial topics.

Direct georeferencing UAV breeding RGB photos

UAV

In digital farming world, UAV enables measuring with high spatial and temporal resolution capable of generating useful information for plant breeding programs.

Different types of imaging systems for remote sensing of crops are being used on UAS platforms. Some of the cameras used are RGB, multispectral, hyperspectral, thermal cameras, and low cost consumer grade cameras modified to capture near infrared (NIR). Consumer grade digital cameras are widely used as the sensor of choice due to their low cost, small size and weight, low power requirements, and their potential to store thousands of images.

reference: https://plantmethods.biomedcentral.com/articles/10.1186/s13007-016-0134-6


Before each flight, the gyro need to be calibrated to make sure the camera could get a good view angle (facing to the ground). When flying UAV, the pilot also need to make sure there are always overlays between each photos. Since there are ovelays between each UAV images, they can be stiched together easily.

calibrate_camera

Image stitching is a pixel based algorithm, it scans similar pixel values between two images and then expand the canvas to include more pixles, at the same time it’s also doing affine transformation to rotate and zoom on images and then stich them together. Here is an example of UAV stiched images.

apg_oilpalm

There are several disadvantages of pixel based image stitching:

Instead of looking into how to optimize existing pixel based stitching solution. I explored a new way for stitching UAV images, which is stitching them by coordinates, also known as direct georeferencing. By downsizing each UAV images, the direct georeferencing method could quickly identify image quality issues and predict the pixel based stitching result. Besides, unlike most pixel based stitching programs, the direct georeferencing implementation can deployed into a single webpage, which makes it more user friendly!

One of the key ideas of the direct georeferencing method is using Quadrilateral Transformation to stitch image corners. We can use the gyro data to built a rotation matrix to get accurate 4 corner coordinates of an image. Then the quadrilateral transformation is used to stretch the image 4 corners to the place.

4_direct_geofeerence

Here is a direct georeferencing live demo:

View source code