Practical 2 Preprocessing
Practical 2 Preprocessing
Practical 2: Data-Preprocessing
Core Task:
1. Layer Stacking
2. Image Sub-setting
3. Image Mosaicking
4. Image Sharpening
At the end of this practical, you should be familiar with some of the data-preprocessing techniques
for the remote sensing in ENVI.
Information Box
Layer stacking is often used to combine separate image bands into a single multispectral image
file. Layer stacking is also commonly used to combine image derivatives with spectral bands for
further analysis (i.e. layer stack an NDVI image with spectral bands for input to an image
classification). In order to do that the images should have the same extent (number of rows and
number of columns), which means you will need to resample other bands which have different
spatial resolution to the target resolution. In other words, all images/bands should have same
spatial resolution to be able to perform layer stacking. However, combining images/bands will
increase the final stacked image size, and consequently will increase the processing time later when
you do your analysis.
1. Copy zipped image data from image stacking folder to your working folder and unzip it.
After unzipping, you can see 7 separate ETM band of Landsat imagery.
2. Add all image file to the ENVI except band 6, which is thermal band.
3. In the toolbox at the right side of ENVI interface, click on raster management > layer
stacking. Or, you can search as ‘Layer Stacking” at the top of toolbox. The layer stacking
parameters dialog box appears.
4. Click on import file and you can see new dialog box naming Layer Stacking Input file.
Question 1:
What is the advantage of doing layer stacking rather than leaving each band as individual?
Data Used:
• Layer stacked image
• Shapefile of Kathmandu Valley (ktmwgs.shp)
1. Close all the data and open the layer stacked image. In the same window, open the shapefile
of Kathmandu valley. You can see at the image window that vector file of Kathmandu
valley is overlapped on the layer stacked image. If not, right click on the shapefile
(ktmwgs.shp) and click on zoom to layer extent.
2. Check the metadata of the image and shapefile and be sure that both of them are in same
projection system.
3. In the toolbox, click on region of interest > subset data from ROIs. The select input file
to subset via ROIs dialog box appears.
4. In the select input file, click on layer stacked image and click ok.
5. Then, spatial subset via ROI parameters dialog box appears.
Figure 4: Spatial subset via ROI dialog box
5. Right click on the data ignore value and click on change selected parameters. Put 0
value in the dialog box and click Ok. Now you can see in the image that black
background has changed into the white background.
6. In colour matching action, choose one image which act as reference image as reference
and other as the adjust.
Question 2:
In the final output from seamless mosaic and pixel-based mosaicking, what difference did
you notice? What is the reason behind it?
Data Used:
• High_resolution.img
• Multispectral.img
1 Copy the resolution merging folder to your working folder.
2 Add the two images in ENVI interface, the multispectral and panchromatic images.
Visualize the multispectral image in colour composite.
3 Take a swipe tool to visualize the difference between panchromatic and multispectral
image.
4 In toolbox, click on Image sharpening > PC spectral Sharpening. The select low spatial
resolution multi band input file appears. Select multispectral image here and click ok.
5 This is followed by the select high spatial resolution input file. Chose high resolution image
here and click ok.
6 Select Nearest neighbor resampling technique.
7 Navigate to your working folder and give the name pan sharpen and click ok.
8 Remove all the image in the layer manager. Then add pan sharpen and panchromatic image
and see the difference using swipe tool. Similarly, add pan sharpen and multispectral image
and see the difference.
Exercise: Experiment with other available algorithm in ENVI for the image sharpening.
Question 3:
What is the difference between panchromatic, multispectral and pan-sharpened image?
Question 4:
What do you see the difference in the output of different image sharpening techniques?
Why?
Question 5:
Which resampling technique is suitable for layer stacking, mosaicking and image
sharpening?