Offset multibandread command in Matlab
4 views (last 30 days)
Show older comments
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 Comments
Walter Roberson
on 19 Feb 2013
Could I ask you to recheck whether the data is 16 bits signed (int16) or 16 bits unsigned (uint16) ?
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!