[GRASS-dev] Re: [GRASS GIS] #774: i.rgb.his, i.his.rgb,
d.his support for >8 bit
GRASS GIS
trac at osgeo.org
Mon Oct 5 04:01:00 EDT 2009
#774: i.rgb.his, i.his.rgb, d.his support for >8 bit
--------------------------+-------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords: i.rgb.his, i.his.rgb, d.his
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by hamish):
for d.his main.c we can probably pass HIS_to_RGB() something like
(int)(value_[atcol]/pow(2, bitdepth-8)) to rescale >8bit to 0,255.
opt_bit_depth->options = "8-16";
(we can only set the color to 8-bit per channel, right? so we have to
degrade at some point.. might as well be here)
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/774#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list