i.his.rgb(1)

πŸ’– i.his.rgb β€” the GRASS GIS glow-up page πŸ’–

okay bestie, sit down, hydrate, because we're about to take three raster maps living in HIS (Hue-Intensity-Saturation) color space and transform them into RGB (Red-Green-Blue) color space. it's giving alchemy but it's just math. this is i.his.rgb(1) from the GRASS GIS User's Manual and she is iconic.


✨ NAME ✨

i.his.rgb β€” Transforms raster maps from HIS (Hue-Intensity-Saturation) color space to RGB (Red-Green-Blue) color space. no cap, that's the whole job. πŸŽ€


🏷️ KEYWORDS 🏷️

imagery, color transformation, RGB, HIS, IHS


πŸ¦‹ SYNOPSIS πŸ¦‹

i.his.rgb
i.his.rgb --help
i.his.rgb hue=name intensity=name saturation=name red=name green=name
blue=name  [--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]

πŸ’… FLAGS πŸ’…

  • --overwrite β€” let those output files bulldoze any existing files in their way. permission to overwrite: granted. πŸ’₯
  • --help β€” prints the usage summary, aka the little cheat sheet.
  • --verbose β€” verbose module output. she talks more. we love a chatty queen. πŸ—£οΈ
  • --quiet β€” quiet module output. she says nothing. mysterious. ✨
  • --ui β€” force launching the GUI dialog. mouse girlies, this one's for you. πŸ–±οΈ

🧚 PARAMETERS 🧚

  • hue=name [required] β€” name of input raster map (hue).
  • intensity=name [required] β€” name of input raster map (intensity).
  • saturation=name [required] β€” name of input raster map (saturation).
  • red=name [required] β€” name for output raster map (red).
  • green=name [required] β€” name for output raster map (green).
  • blue=name [required] β€” name for output raster map (blue).
bestie these are all required. every single one. no skipping. the module will simply not play with you. πŸ™ˆ

🌸 DESCRIPTION 🌸

so i.his.rgb is an image processing program, right? you hand it three input raster map layers and it treats them as the hue, intensity and saturation components. then it hands you back three output raster map layers representing the red, green and blue components of that same data. it's a whole transformation arc. πŸ‘‘

the output raster map layers get created by a standard hue-intensity-saturation (HIS) to red-green-blue (RGB) color transformation. that's the vibe.

and each output raster map layer is given a linear gray scale color table. so they start out monochrome and humble. πŸ’…

also important: the current geographic region and mask settings are respected. she respects boundaries. as she should. 🫢


😭 NOTES 😭

okay this is the part where I have to be real with you.

It is not possible to process three bands with i.his.rgb and then exactly recover the original bands with i.rgb.his.

why?? because of loss of precision from integer computations and rounding. it's not a bug, it's just numbers being numbers. πŸ’€

but wait, it's not all doom. tests have shown that more than 70% of the original cell values will be reproduced exactly after transformation in both directions, and 99% will be within plus or minus 1. so like, mostly fine. mostly.

however β€” and this is the part that keeps me up at night β€” a few cell values may differ significantly from their original values. so. yeah. round-tripping is not a perfect circle. it's more of a wobbly oval. πŸŒ€


πŸ‘€ SEE ALSO πŸ‘€

  • i.rgb.his
  • r.colors

the girlies you should also be reading. iykyk. πŸ“š


πŸ‘‘ AUTHOR πŸ‘‘

David Satnik, GIS Laboratory, Central Washington University

with acknowledgements to Ali Vali, Univ. of Texas Space Research Center, for the core routine.

shoutout to the core routine. the backbone. the moment. πŸ”₯


πŸ’œ SOURCE CODE πŸ’œ

Available at: i.his.rgb source code (history)

Accessed: Saturday Jan 17 05:41:41 2026

Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index

Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual


okay that's the whole page, bestie!! go forth and transform your rasters, respect your region and mask settings, and remember β€” a few cell values may differ significantly, and honestly? same. 😌

GRASS 8.4.2 β€” i.his.rgb(1) β€” signing off, mwah πŸ’‹βœ¨πŸ¦‹

πŸ“¦ where this page comes from