필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

read and save img file

조회 수: 1 (최근 30일)
Hana
Hana 2015년 4월 16일
댓글: Hana 2015년 4월 16일
when I use the command fopen and fread to input the image with img format,the mat file shows the streched values (from 0-255)rather than pixel values. How can I open an img file and have the pixel values. and How can I save my output as img format?
  댓글 수: 2
Jan
Jan 2015년 4월 16일
What exactly is the "img" format? Do you mean the Apple disk image files? Which MAT-files shows what and what are "streched" values? What does "pixel values" mean?
Please edit the question and add more details.
Hana
Hana 2015년 4월 16일
I have a satellite image with .img format. streched values are on the scale of 0-255 .if you click to identify any pixel values in arcgis then you have two set of values,one is streched and one is the value of the pixel. I read my image as follow,but the mat file in matlab shows the streched values and not the pixel values of the image. fid2=fopen('tb420_4.img'); tb = fread(fid2,[6100 2505]);

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by