Image processing
For simplicity, we skip all the steps such as atmospheric and topographic
corrections.
Unsupervised image classification
Set the computation region to the one of the raster maps we will work with:
g.region rast=lsat7_2002_10 -p
g.list type=rast
i.group group=lsat7_2002 subgroup=lsat7_2002 input=lsat7_2002_10,lsat7_2002_20,lsat7_2002_30,lsat7_2002_40,lsat7_2002_50,lsat7_2002_70
i.cluster group=lsat7_2002 subgroup=lsat7_2002 signaturefile=sig_cluster_lsat2002 classes=10
i.maxlik group=lsat7_2002 subgroup=lsat7_2002 signaturefile=sig_cluster_lsat2002 output=lsat7_2002_cluster_classes
d.rast lsat7_2002_cluster_classes
Image segmentation
i.segment group=lsat7_2002 output=lsat7_2002_segments threshold=0.5 method=region_growing similarity=euclidean
Texture extraction
r.texture input=lsat7_2002_80 prefix=lsat7_2002_80_texture size=7 distance=1 method=corr,idm,entr
Explore raster values
Use query tool to get raster values.
Use
d.rast.num
to show individual values of the raster.
Color enhancement
Add RGB layer to the Layer Manager or use the following command:
d.rgb blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30
i.colors.enhance blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30 strength=95
Learn more