Offset multibandread command in Matlab
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a problem reading an image with the multibandread command. I think it's because of the offset but I don't know how to change it. The command works well, and I get the result but the three first rows of the image result are with negative numbers and the rest, are not well-readead (the columns and the rows are in a different position but the values are well).
TRY = multibandread(dc.tif', [1280,307,191], 'int16', 1, 'bsq', 'ieee-le');
I know it's a bsq image, int16 and the number of the bands, rows and columns because I've checked it on ERDAS. How can I know the offset value? The Matlab help says the following, but I've tried with 16, 1 and other values but it doesn't read the image properly.
This value represents the number of bytes from the beginning of the file to where the data begins.
Thanks in advance,
2 个评论
Walter Roberson
2013-2-19
Could I ask you to recheck whether the data is 16 bits signed (int16) or 16 bits unsigned (uint16) ?
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!