[Gdal-dev] Is there a GetRasterBandasRGB?

Frank Warmerdam warmerdam at pobox.com
Wed Jul 5 22:15:29 EDT 2006


Christopher Barker wrote:
>
>> In my experience, approaches start to vary a lot when you get to turning
>> non-8bit data into RGB images (scaling variations and so forth).  I'm a
>> bit nervous about setting a particular approach in concrete.
> 
> Well, no one would have to use it if they didn't want to, but I'm 
> confused as to the complications you're referring to. If you have data 
> in CMKY or something, I guess there's a trick, or 16 bit RGB, or.. but 
> in on many cases, it's pretty straightforward. So far all I've needed to 
> do is the palleted format in BSB maps, and colors are defined in RGB, so 
> it's pretty simple.

Christopher,

I was thinking of 16bit, floating point and other data that has no
obvious relationship to color.  Stuff like elevation, radar responses,
population density and so forth.


>> Nevertheless, if you were interested in doing it in a well integrated
>> fashion, I think you would need to write up an RFC for the work item.
>> That would give a variety of folks a chance to comment on the approach.
> 
> Good idea. What is most likely to happen is that we'd write something 
> that would fill our needs, then post that for comments, and see if there 
> was enough interest to work toward making it more universal.
> 
> I hope I'll be posting more about this later....

OK, sounds good.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list