[GRASS5] r.in.gdal and colors

Russell Nelson nelson at crynwr.com
Wed Feb 5 23:43:59 EST 2003


Eric G. Miller writes:
 > Of course, min/max per band isn't really correct for RGB imagery
 > since it can skew the colors, but we can't assume 0-255 with 32-bit
 > ints.

If r.in.gdal is reading an image with 24 bits per pixel (e.g. a jpg),
and it writes those 24 bits into three 8-bit-deep rasters, then it
seems to me that a greyscale colortable of 0-255 is the ONLY right
thing to do.

-- 
-russ nelson              http://russnelson.com | You get prosperity when
Crynwr sells support for free software  | PGPok | the government does less,
521 Pleasant Valley Rd. | +1 315 268 1925 voice | not when the government
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | does something right.




More information about the grass-dev mailing list