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 withi.his.rgband then exactly recover the original bands withi.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.hisr.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
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms