Problem reading 16bit grayscale image
12 ビュー (過去 30 日間)
古いコメントを表示
Hello
I have a strange problem when trying to read in a grayscale image of 16bit. So despite the fact that these images are well displayed in some other software I use, when I am trying to load them in Matlab as tiff files a very strange thing occurs.
So the images are read in as uint16 (which is correct). Some values such as the maximum are also detected correctly but the most of the rest values are imported as zeros, which is absolute wrong !
I trying to read them both with imread() and geotiffread() --- as these files are georeferenced images
Do you know what may be the reason for such a problem ?
Thanks in advance
回答 (1 件)
Sean de Wolski
2013 年 10 月 11 日
編集済み: Sean de Wolski
2013 年 10 月 11 日
Perhaps they should be int16's and the values below zero are saturating to zero since they can't be represented as a uint16?
If you could attach an image, that would help.
More per size clarification
It sounds like the file might actually be a BigTIFF file. You could try using the MATLAB interface to LibTIFF to see if it can be read directly from there:
doc tiff
You can also read in just certain tiles at a time.
This blog may interest you as well:
5 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!