필터 지우기
필터 지우기

Offset multibandread command in Matlab

조회 수: 2 (최근 30일)
Emmanuelle
Emmanuelle 2013년 2월 19일
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
Walter Roberson 2013년 2월 19일
Could I ask you to recheck whether the data is 16 bits signed (int16) or 16 bits unsigned (uint16) ?
Emmanuelle
Emmanuelle 2013년 2월 19일
It's 16 bits signed (int16)

댓글을 달려면 로그인하십시오.

답변 (0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by