[gdal-dev] 8 bit or 24 bit
Frank Warmerdam
warmerdam at pobox.com
Sun May 31 14:07:29 EDT 2009
jor sion wrote:
> Hi,
>
> How to judge an image in hdf files is 8 bit or 24 bit?
Jor,
Check the number of bands with GDALDataset::GetRasterCount(). If this is
three, then it is likely what you call 24bit,and if it is 1 then it is
likely 8bit.
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 | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list