Hi,
When I try to read multi layer geotiff images using geotiffread, I receive an error that the multiple image in that geotiff are not of the same size.
This is how I tried to read the image
[I,R]=geotiffread('filename.tif')
or
[I,R]=geotiffread('filename.tif',1)
I can read them just fine with the imread and using the imfinfo I manually create R myself. But I think this is a bug that needs to be addressed in geotiffread.
MATLAB is correct about the multiple images not having the same size. The fact is that those other images/layers are the pyramid or overview layers. However, that does not make any sense that geotiff read not be able to read the specified layer from the file and complaining about it.
Here is the error:
Error using geotiffinfo>readinfo (line 261)
Multiple images exist in the file and their sizes are different.
Error in geotiffinfo (line 241)
info = readinfo(filename);
Error in geotiffread (line 78)
info = geotiffinfo(filename);
8 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_276218
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_276218
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_405373
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_405373
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_461723
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_461723
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_536223
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_536223
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_547616
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_547616
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_552507
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_552507
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_606987
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_606987
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_779885
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/147514-geotiffread-and-multilayer-images#comment_779885
Sign in to comment.