How can GDAL driver support 16(32)-bit color images?

classic Classic list List threaded Threaded
3 messages Options
OEJackaroo OEJackaroo
Reply | Threaded
Open this post in threaded view
|

How can GDAL driver support 16(32)-bit color images?

16(32)-bit color images are shown as gray images loaded by GDAL driver, how can i solve this problem?
Thanks.
MCA4213 MCA4213
Reply | Threaded
Open this post in threaded view
|

Re: How can GDAL driver support 16(32)-bit color images?

Hello,
I faced this problem before as you can see in this post.
And the solution is to made some modification to the gdal driver that you can find them in the following two files. These changes will allow you to load any image, and also to change the bands to render (but still cannot remove the image cache).
ReaderWriterGDAL.cpp
TileSource.TileSource


These changes are not perfect, so you can work arround them if you face any problem.
Good luck.
OEJackaroo OEJackaroo
Reply | Threaded
Open this post in threaded view
|

Re: How can GDAL driver support 16(32)-bit color images?

Much appreciated. I believe it will help me a lot.