Can I read TIFF or GeoTIFF RGB images with a bitdepth of 96 bits per sample (32 bits per color) into MATLAB or the Mapping Toolbox?

2 views (last 30 days)
I have a GeoTIFF image that uses 32 bits to represent each color at each sample. When I use the GEOTIFFREAD or IMREAD functions to read the image, I receive the following error:
??? Tiled images must have 8 bits per sample or less.
Error in ==> imagesci\private\readtif at 32
[X, map, details] = rtifc(filename, args.index);
Error in ==> imread at 308
[X, map] = feval(fmt_s.read, filename, extraArgs{:});
Error in ==> geotiffread at 85
[I, map] = imread(filename,idx);

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This enhancement has been incorporated in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
The ability to read images with bitdepths of 96 is not available in MATLAB or the Mapping Toolbox.
As a workaround, you can use the attached mex-file that will read 32-bit TIFF (and GeoTIFF) images.

More Answers (0)

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!