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!