What is GeoAI? Definition, examples, and real-world applications
What is GeoAI? Understanding geospatial artificial intelligence GeoAI, short for geospatial artificial intelligence, involves using AI techniques like machine learning...
Note: This content reflects Picterra’s perspectives and product features at the time of writing, which may have since changed.
Updated: May 2020
We often get asked about using images that are not simply RGB in our Platform. For example, we have users who want to:
All of this is actually possible on our Platform. Although the Platform is limited to processing 3 bands, those bands don’t have to be RGB bands. The key to process those additional bands is to create a false color image. A false color image is an image with 3 bands, but where those bands are not the typical Red, Green and Blue.Very often, you will see false color images which replaces the red channel by the NIR band, the green channel by the Red band and the blue channel by the Green. This has been the typical false color images in remote sensing for decades, extremely useful for applications related to vegetation.
However, we are not limited to this type of false color. Instead, you could for example do a false color image where:
If you then upload this image on the Picterra Platform, our algorithms will learn from those 3 bands and will therefore learn from the DHM data!
In this article, we’ll discuss how to create such false color images in QGIS. We will be using QGIS version 3.4, but new versions should work as well.
As an example scenario for this article, we’ll use :
We want to build our false color image with the red and green bands of the RGB image combined with the DHM.
The first step is to save a rendered version of the DHM tif. DHM data is often stored as floating point values in 32-bits, but in the end we want a tif with byte (or uint8) bands.
When you load a floating point image in QGIS, you can see that from the Raster properties:
To convert the raster to byte type, you can right click on your raster and select ‘Export -> Save As’. Then, select ‘Rendered image’ output mode. Enter a file name and save your new image.
If you open the resulting file, it should look visually exactly the same in QGIS, but the difference is that if you look at the raster properties, it should now be a 4 bands byte image and the values of each pixel are between 0 and 255. When saved as Rendered image, QGIS creates 4 bands (RGBA) from the greyscale image. However, all the RGB bands are the same, so we’ll pick one to use later.
You need to install a QGIS plugin called ‘Virtual Raster Builder’ :
Once the plugin has been installed, you can access it through an icon in your QGIS menu bar:
Start the ‘Virtual Raster Builder’. Drag and drop both the original RGB image and the DHM rendered image (that you saved above) in the ‘Source Files’ panel of the ‘Virtual Raster Builder’.
Now, drag and drop bands 1 (Red) and 2 (Green) from the RGB image and band 3 from the DHM image in the ‘Virtual raster’ panel on the left.
Finally, switch to the ‘Output’ tab and:
Click on ‘Save’. This should open the virtual raster in QGIS and you should see your false-color image. As you can see, since we replaced the third band, which is displayed as blue, by the DHM, the higher objects have a blueish color.
The last QGIS step is to save the Virtual Raster into an actual TIFF file. To do this, right click on the virtual raster and then select ‘Export -> Save As’. Select ‘Rendered image’ as done for the DHM previously. Enter a filename and you’ll have your custom false color R/G/DHM composite!
You can now upload the TIFF to Picterra Forge and train a custom detector on it. The custom detector that you trained will then learn from the Red and Green bands of the RGB raster plus the DHM:
We have seen how to create a Red/Green/DHM false color image and how to process it in Picterra Forge. You can now do your own combination and your imagination and your data is the limit !
For example, you could:
If you’d like us to explore those directions in a future article, please reach out!
What is GeoAI? Understanding geospatial artificial intelligence GeoAI, short for geospatial artificial intelligence, involves using AI techniques like machine learning...
Organizations are navigating an unprecedented influx of geospatial data in today's fast-evolving compliance and sustainability landscape. The need for clean,...
This week, we have released a set of features that further improve how change detection works within the Picterra platform....
In the rapidly evolving European Union Deforestation Regulation (EUDR) landscape, ensuring compliance with its forward-thinking environmental standards is a top...