Fundamentals of “classification” in remote sensing

0
695
UNCLASSIFIE

The world of remote sensing is perhaps one of the areas of knowledge from which we can take interesting concepts and techniques for our graphic documentation work of heritage, or at least keep them in mind to understand the potential of certain techniques.

Remote sensing is a discipline that uses multiple sensors to obtain remote information from an object or scene. Among these instruments, digital imaging is usually one of the common ones. However, unlike common digital photography, cameras capable of “seeing” beyond the visible spectrum, such as infrared or ultraviolet, are used in order to obtain the maximum possible information from a scene.

While a normal camera photographs in three bands in the visible spectrum, or in other words in three channels: R, G, and B, in the multiband or multispectral image, a scene is captured in multiple bands, ranging from the visible to the invisible spectrum (IR and UV).

Each channel or band of these images can be displayed in a grayscale or density image, where each pixel corresponds to a level of “intensity.”

This stack, or set of channels or layers, is called in certain jargon a “hypercube,” where each pixel is described by the usual X and Y coordinates, as well as a Z, described by the intensity of that pixel in the different channels.

The next step is to determine the probability that a pixel, or set of pixels, corresponds to a certain characteristic of our scene (an element or compound). For this, we have to correlate the intensity of a certain set of pixels with the “spectral signature” of the compound to be detected.

esquema_correlacionA “spectral signature” is a curve created from the radiance (reflected energy) for each wavelength along the spectrum. In this way, a surface will reflect more or less energy in certain areas of the spectrum, a phenomenon by which we perceive different colors. To obtain a “spectral signature” of a compound or surface, we need a spectroradiometer, or failing that, a spectrophotometer, which will provide the spectrum in the form of a curve made up of as many points as bands the device can resolve.

Thus, a pixel has more or less levels (0-255) depending on the energy reflected by a surface for a particular band. For example, a surface perceived as “red” will indicate that it reflects a lot of energy in the region of the spectrum between 600-700nm, so the resulting pixel will have a high “pixel level,” while the pixels of the green and blue bands will have low levels.

In this way, we can correlate the pixel intensities with the curves or spectral signatures, and the more bands we can separate our scene into, the more precision we will obtain to correlate it with a certain curve.

It should be noted that many of the correlation techniques used are mere statistics, so these classifications represent nothing more than the probability that a set of pixels represents one element or another of the scene.

A bit of practice

teledecteccion arte rupestreIf we want to play a little with these concepts, we can resort to the free multiplatform tool Hypercube from the US Army, which also allows us to download some test images and a small library of spectral signatures.

But we can also work with common RGB images.

If we use an RGB image, after opening it, we have to convert it into a hypercube; for this, we go to “Image > Convert Image > Color to Cube” and choose, for example, the BGR Cube mode.

Next, we will see how our image is decomposed into channels where only density is expressed; thus, at the top, we will see that the red channel is assigned around 646nm, green to 545nm, and blue to 460nm.

Then we can perform a “classification” by going to “Functions > Classify.” At this point, we can make classifications by detecting pixels with similar levels; for this, we must apply several points over the areas of interest to perform the “training” and then classify.

However, following what was mentioned, the best is to load a “library” of spectral signatures. These signatures can be, for example, types of soils, asphalt, water, sand, vegetation, etc., or types of pigments, etc. If we download the test signatures, we can see their format, where, for example, the file Alib is the index, and the rest are the signatures. A signature has a header where, among various zeros, we can see the spectrum interval, for example, 350-2500nm, and the steps, for example, 5nm. If we use a graphic arts spectrophotometer, for example, it will be from 380-730 in steps of 10nm.

Another configuration we can play with is the comparison or correlation method we are going to use; by default, “Vector Angle” usually appears, which is one of the most common.

With these more or less clear steps, we can now select which signatures we want to detect in our scene, whether we want to average them, etc.