Note: This document is for an older version of GRASS GIS that is outdated. You should upgrade, and read the current manual page.
The module works by calculating a histogram for each color channel and removing an adjustable amount of outliers from either end before recalibrating the color scale with r.colors.
It will work with any 8-bit RGB imagery set and the script is easily modified to work with other datasets of greater band-depth.
The strength option should generally be set in the 90-99 range. The lower the number, the more saturated the image becomes. It represents the percentage cut-off for the top end of the color histogram curve. The lower end is fixed at 2% of the area under the curve.
For quicker execution of this module on large images you can achieve largely similar results by switching to a coarser resolution before the running of the module (using g.region) and then back to the original resolution afterwards.
g.region raster=lsat7_2002_10 -p d.rgb blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30 d.barscale at=55.3125,93.125 bcolor=white text_pos=over i.colors.enhance blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30 strength=95 d.rgb blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30 d.barscale at=55.3125,93.125 bcolor=white text_pos=over
Color corrected RGB composite of Landsat ETM channels B/G/R
Available at: i.colors.enhance source code (history)
Latest change: Thu Feb 3 11:10:06 2022 in commit: 73413160a81ed43e7a5ca0dc16f0b56e450e9fef
Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index
© 2003-2022 GRASS Development Team, GRASS GIS 8.0.3dev Reference Manual