Borrar filtros
Borrar filtros

Offset multibandread command in Matlab

2 visualizaciones (últimos 30 días)
Emmanuelle
Emmanuelle el 19 de Feb. de 2013
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 comentarios
Walter Roberson
Walter Roberson el 19 de Feb. de 2013
Could I ask you to recheck whether the data is 16 bits signed (int16) or 16 bits unsigned (uint16) ?
Emmanuelle
Emmanuelle el 19 de Feb. de 2013
It's 16 bits signed (int16)

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by