Module 4 · 11 min read · Free chapter
Image processing in depth: radiometric correction, enhancement numericals, PCA and classification accuracy
Images are first converted from digital numbers to reflectance and corrected for haze, then enhanced by stretching and band ratios that cancel shading. Principal components separate subtle rock differences. A classified map is checked with a confusion matrix: 85 percent overall accuracy with 33 percent chance agreement gives a kappa of about 0.78.
Start from zero: the same hill, two different pictures
Imagine two satellite images of the same hill, one from a clear winter morning and one from a hazy summer afternoon. In the first, the granite looks pale; in the second, it looks dull and bluish, and the shaded slope has almost disappeared.
Has the rock changed? Of course not. The sun angle, the atmosphere and the sensor settings have changed.
Before a computer can compare images or classify rocks, these effects must be removed or reduced. The previous chapter introduced pre-processing, enhancement, colour composites, band ratios, NDVI and classification. This chapter works through the numbers: converting digital numbers to reflectance, stretching contrast, ratios, principal components and measuring how accurate a classified map really is.
It also discusses the promise and pitfalls of machine learning, and India's national thematic maps made from satellite images.
Why it matters. Image processing questions now expect formulas and an accuracy assessment, not only a list of techniques. These are the tools of a working remote sensing geologist.
Deep dive: radiometric correction and enhancement, with numericals
From digital numbers to radiance. A sensor records each pixel as a digital number (DN), an integer that depends on detector settings. To compare images, DNs are first converted to radiance, the energy reaching the sensor per unit area, solid angle and wavelength, using calibration coefficients supplied with the image:
From radiance to reflectance. Radiance still depends on how bright the sun was. Top-of-atmosphere reflectance divides out the incoming sunlight:
where d is the Earth-Sun distance in astronomical units, E_sun the mean solar irradiance in that band, and θ_s the solar zenith angle.
Worked numerical 1. A pixel has radiance 80 W m⁻² sr⁻¹ µm⁻¹ in a band where E_sun = 1,550 W m⁻² µm⁻¹. The sun is 30° from the zenith and d = 1. Then
The surface reflects about 19 percent of the incoming light in that band.
Removing haze. The atmosphere scatters light, especially at short wavelengths, adding a haze that brightens every pixel. Dark-object subtraction assumes that some pixels, such as deep clear water or deep shadow, should have nearly zero reflectance. The darkest value in each band is taken as the haze contribution and subtracted. More rigorous corrections use radiative transfer models with atmospheric data.
Contrast stretching. Most scenes use only part of the 0 to 255 display range. A linear stretch maps the data minimum to 0 and maximum to 255:
Worked numerical 2. If a band ranges from 40 to 120, a pixel of 80 becomes 255 × 40/80 ≈ 128, in the middle of the display range. Histogram equalisation instead spreads values so that each grey level holds a similar number of pixels.
Band ratios. Dividing one band by another cancels effects that scale both equally, such as topographic shading.
Worked numerical 3. A rock gives 100 in band A and 50 in band B on a sunlit slope, and 50 and 25 on a shaded slope. The ratio A/B is 2 in both places, so the rock looks the same regardless of illumination. Ratios such as red/blue for iron oxides and SWIR1/SWIR2 for clays and carbonates are standard in geology.
Why it matters. Calibration, haze removal, stretching and ratios are the foundation on which all later geological interpretation rests.
Deep dive: principal components and accuracy assessment
Why bands are redundant. Adjacent spectral bands are often highly correlated: a bright rock tends to be bright in all visible bands. Much of the information is therefore repeated. Principal component analysis (PCA) rotates the data into new axes, the principal components, that are uncorrelated with each other and ordered by how much variance they contain.
What the components show. In a typical scene, the first component (PC1) carries most of the variance, often over 90 percent, and looks like a sharp black-and-white image of overall brightness and topography. PC2 and PC3 carry contrasts between groups of bands, such as visible versus infrared, which often separate vegetation, water and rock types. Later components carry little variance and much noise, but sometimes reveal subtle mineral differences.
Decorrelation stretch. In this method, the data are rotated to principal components, each component is stretched to equal variance, and the result is rotated back to the original bands. The image keeps the familiar colours of the bands but with greatly exaggerated colour differences, which helps distinguish rock types in arid terrain.
Directed PCA. In the Crosta technique, PCA is applied to four carefully selected bands, and the component that loads strongly and with opposite signs on bands where a mineral absorbs and reflects is used to map that mineral, such as iron oxides or clays.
How good is the map? After an image is classified into rock or land-cover classes, its accuracy must be checked against reference data, from field visits or higher-resolution images. The comparison is set out in a confusion matrix.
Worked numerical 4. Three hundred test pixels are checked, 100 in each of three classes: granite, basalt and alluvium. The classified map labels them as follows: of the 100 granite pixels, 90 as granite, 10 as basalt; of the 100 basalt pixels, 5 as granite, 80 as basalt, 15 as alluvium; of the 100 alluvium pixels, 5 as granite, 10 as basalt, 85 as alluvium. The diagonal sums to 90 + 80 + 85 = 255.
If row and column totals are all 100, the agreement expected by chance is p_e = 3 × (100 × 100)/300² ≈ 0.333. Then
A kappa of 0.78 is usually described as substantial agreement.
Producer's and user's accuracy. Producer's accuracy for basalt is 80/100: 20 percent of real basalt was missed, an omission error. User's accuracy for basalt is the fraction of pixels mapped as basalt that really are basalt: here 80 of the 100 mapped basalt pixels, or 80 percent, the rest being commission errors from granite and alluvium.
Why it matters. PCA explains a key enhancement for geology, and confusion-matrix arithmetic is the standard way to show that a map can be trusted.
Critiques and debates: accuracy numbers and machine learning
When 85 percent is not enough. A single overall accuracy figure can hide important failures. Suppose a map of a mineral belt is 95 percent accurate overall, but the rare class that matters, an alteration zone covering 2 percent of the area, is correctly mapped only half the time. The map looks excellent by its headline number but fails at its main purpose.
Reference data are another weak point. They may be few, collected only near roads, or themselves wrong, for example when a field team misidentifies a weathered rock. Map makers and users may also define classes differently.
The kappa debate. Kappa was widely recommended to correct for chance agreement. Later studies argued that it depends on class proportions and adds little beyond overall accuracy, and some researchers now recommend reporting the full confusion matrix, per-class accuracies and estimated area proportions instead.
Machine learning. Random forests, support vector machines and deep convolutional neural networks often outperform the traditional maximum likelihood classifier, especially with many bands or complex textures. Object-based image analysis first groups pixels into segments, such as fields or rock outcrops, and then classifies them using shape and context as well as spectra.
But these methods bring new problems. They need large, reliable training sets, which are expensive to collect in geology.
A model trained in one district may fail in another with different soils or vegetation. Deep networks can be hard to interpret, so it is difficult to know why a pixel was labelled ore-bearing. When maps guide drilling or land-use decisions, explainability matters.
Human expertise remains central. The best results usually come from combining automated classification with expert interpretation, geological knowledge and field checks.
Why it matters. Questions on digital image classification increasingly ask for critical evaluation. Discussing accuracy pitfalls and machine learning limits shows mature understanding.
Indian studies and evidence
National thematic maps. India has used satellite image processing to build national map layers. The National Remote Sensing Centre prepares land use and land cover maps of the whole country at 1:250,000 every year from AWiFS images, and at 1:50,000 at intervals from LISS-III images. Wasteland atlases, first published in 2000 with later editions, map degraded land for development planning.
Geomorphology and lineaments. Under a national project, the National Remote Sensing Centre and the Geological Survey of India prepared geomorphology and lineament maps of the country at 1:50,000 from satellite images, using a common legend. These layers support groundwater, engineering and hazard studies.
Groundwater prospects. Under the Rajiv Gandhi National Drinking Water Mission, groundwater prospect maps were made for every state by integrating lithology, geomorphology, structure and hydrology interpreted from satellite images, with field checks. They guide the siting of drinking-water wells and recharge structures, and are served through the Bhuvan portal.
Mineral studies. Indian researchers have used band ratios, principal components and spectral angle methods to map iron ores in the Bababudan hills of Karnataka and the Noamundi belt of Jharkhand-Odisha. They have mapped laterite and bauxite cappings on the Eastern Ghats plateaus of Odisha and Andhra Pradesh, and hydrothermal alteration around base-metal deposits in Rajasthan.
In dry Rajasthan the bedrock is well exposed, and ratio and PCA images separate quartzites, schists and carbonates of the Aravalli and Delhi supergroups clearly.
Why it matters. The national LULC, geomorphology-lineament and groundwater prospect maps, together with mineral case studies, show how image processing serves India's development.
Writing a 20-mark answer
Question: "Describe the major steps of digital image processing used in geological remote sensing, and explain how the accuracy of a classified map is assessed." (20 marks, about 250 words)
- Introduction (2 lines). Digital processing turns raw sensor numbers into geological information through correction, enhancement, transformation and classification.
- Pre-processing (one paragraph). DN to radiance to reflectance (ρ = πLd²/E_sun cos θ_s, worked value 0.19); dark-object haze removal; geometric correction.
- Enhancement (one paragraph). Linear stretch formula with example; band ratios cancel shading (ratio 2 in sun and shade); iron oxide and clay ratios.
- Transformation (2 to 3 lines). PCA, decorrelation stretch, Crosta technique.
- Classification and accuracy (one paragraph). Supervised and unsupervised; confusion matrix; overall accuracy 85 percent; kappa 0.78; producer's and user's accuracy.
- Conclusion (2 lines). Validation and field checks make maps trustworthy; India's national thematic maps show the scale of use.
Examiner's tip. Drawing a small 3 × 3 confusion matrix with the diagonal highlighted earns marks quickly and shows numeracy.
Mains practice: six questions, six angles
These are practice questions written by us, not past papers. Past questions from UPSC are shown in the PYQ panel of this module.
| Angle | Question | Key points to cover |
|---|---|---|
| Numerical | A band ranges from 25 to 175. Find the stretched value of a pixel of 100 after a linear stretch to 0-255. (150 words) | 255 × 75/150 = 127.5; purpose of stretching. |
| Numerical | A confusion matrix of 400 pixels has a diagonal sum of 340 and chance agreement of 0.30. Find overall accuracy and kappa. (150 words) | 0.85; (0.85 − 0.30)/0.70 = 0.79; interpretation. |
| Explain | Why are images converted from digital numbers to reflectance before analysis? (150 words) | Sensor calibration; sun angle; date comparison; formula. |
| Explain | Explain principal component analysis and its use in lithological mapping. (150 words) | Correlated bands; PC1 brightness; later PCs; decorrelation stretch; Crosta. |
| Debate | "A high overall accuracy does not guarantee a useful map." Discuss. (250 words) | Rare classes; reference data; kappa debate; full matrix. |
| Debate | Assess the role of machine learning in geological image classification. (250 words) | RF, SVM, CNN; OBIA; training data; transferability; explainability. |
How to use this table: every image processing answer should contain one formula and one worked number.
Quick revision
- L = gain × DN + offset; ρ = πLd²/(E_sun cos θ_s); L 80, E_sun 1,550, θ_s 30° gives ρ about 0.19.
- Dark-object subtraction removes additive haze; rigorous correction uses radiative transfer models.
- Linear stretch DN' = 255(DN − min)/(max − min); 40-120 range, 80 becomes 128; histogram equalisation.
- Band ratio cancels shading (100/50 = 50/25 = 2); red/blue iron oxide, SWIR1/SWIR2 clays.
- PCA: PC1 over 90 percent variance (brightness); later PCs subtle differences; decorrelation stretch; Crosta technique.
- Confusion matrix: overall accuracy 255/300 = 0.85; κ = (p_o − p_e)/(1 − p_e) = 0.78; producer's (omission) and user's (commission) accuracy.
- Pitfalls: rare classes, poor reference data, kappa criticism; ML needs training data, may not transfer, hard to explain.
- India: NRSC LULC 1:250,000 yearly and 1:50,000; wasteland atlas; geomorphology-lineament maps 1:50,000 with GSI; groundwater prospect maps; Bababudan, Noamundi, Eastern Ghats bauxite.