i.colors.enhance.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <h2>DESCRIPTION</h2>
  2. <em>i.colors.enhance</em> auto-balances and enhances the color channels of a
  3. RGB image (e.g. from Landsat) to provide a more natural color mixture. Only
  4. the color table of each image band is modified, the base data remains untouched.
  5. <p>
  6. The module works by calculating a histogram for each color channel and
  7. removing an adjustable amount of outliers from either end before recalibrating
  8. the color scale with <em>r.colors</em>.
  9. <p>
  10. <!-- limitation still true ? -->
  11. It will work with any 8-bit RGB imagery set and the script is easily modified
  12. to work with other datasets of greater band-depth.
  13. <h2>NOTES</h2>
  14. Depending on the image, it may or may not be advantageous to use the <b>-p</b>
  15. flag to preserve the relative color scaling. You will have to experiment
  16. with the different options to find a setting that works best for your
  17. particular imagery.
  18. <p>
  19. The <b>strength</b> option should generally be set in the 90-99 range. The
  20. lower the number, the more saturated the image becomes. It represents the
  21. percentage cut-off for the top end of the color histogram curve. The lower
  22. end is fixed at 2% of the area under the curve.
  23. <p>
  24. For quicker execution of this module on large images you can achieve largely
  25. similar results by switching to a coarser resolution before the running of
  26. the module (using <em>g.region</em>) and then back to the original resolution
  27. afterwards.
  28. <h2>EXAMPLE</h2>
  29. North Carolina sample dataset example with Landsat data:
  30. <div class="code"><pre>
  31. g.region raster=lsat7_2002_10 -p
  32. d.rgb blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30
  33. d.barscale at=55.3125,93.125 bcolor=white text_pos=over
  34. i.colors.enhance blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30 strength=95
  35. d.rgb blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30
  36. d.barscale at=55.3125,93.125 bcolor=white text_pos=over
  37. </pre></div>
  38. <center>
  39. <img src="i_colors_enhance_uncorrected.jpg" alt="Uncorrected RGB composite of Landsat ETM channels B/G/R"><br>
  40. Uncorrected RGB composite of Landsat ETM channels B/G/R
  41. <p>
  42. <img src="i_colors_enhance_corrected.jpg" alt="Color corrected RGB composite of Landsat ETM channels B/G/R"><br>
  43. Color corrected RGB composite of Landsat ETM channels B/G/R
  44. </center>
  45. <h2>TODO</h2>
  46. The <b>strength</b> option requires further refinement.
  47. <h2>SEE ALSO</h2>
  48. <em>
  49. <a href="d.rgb.html">d.rgb</a>,
  50. <a href="g.region.html">g.region</a>,
  51. <a href="i.oif.html">i.oif</a>,
  52. <a href="r.colors.html">r.colors</a>,
  53. <a href="r.composite.html">r.composite</a>,
  54. <a href="r.univar.html">r.univar</a>
  55. </em>
  56. <h2>AUTHORS</h2>
  57. Markus Neteler, Trento, Italy<br>
  58. M. Hamish Bowman, Dept. Marine Science, Otago University, New Zealand
  59. <p><i>Last changed: $Date$</i>