Hello Simone

I would like to know if you have some more hints about your plan for 
IndexColorModel support? I'm asking that because actually, IndexColorModel is 
already supported (in some way) for at least 2 years, and I would like to agree 
on what may be the beast approach for that.

What I would like is: *never* convert an index color model to RGB without 
explicit user request (the "user" may be the grid coverage renderer). If 
interpolations are required on an indexed image, either:

- do the interpolation in the "geophysics" space if such space is available;
- otherwise do not allow anything else than "nearest neighboard" interpolation.

This exactly what the existing coverage module does for all operations except 
the new ones (Scale, Crop, FilteredSubsample, SubsampleAverage). If you give me 
the authorization, I would like to refactor those operations in order to make 
them behave like the other operations.

The rational is that the coverage module is primarily about data that happen to 
be displayable. If the image contains meteorological or oceanographical data 
for 
example, then performing anything like "Scale" on the RGB values is dangerous 
as 
explained in my previous email. Furthermore, interpolating on RGB will produce 
the wrong colors anyway (if an image is about temperature, we need to convert 
to 
geophysics space, interpolate the temperature, convert back to indexed space 
and 
then display according the IndexColorModel - the result is different than 
interpolating the RGB values.)

I suggest that we provide some convenience method that converts an arbitrary 
GridCoverage2D from indexed space to RGB space, so the user can invoke this 
method before to apply operations if he want to operate on RGB space. But 
otherwise, I would like to push for a "never convert to RGB under the hood in 
coverage module" policy. Would you agree?

        Martin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to