MATLAB: 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

3296bitdepthgeotiffreadimageimreadMATLABtiff

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);

Best Answer

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.