Read an 16 unsigned bits image...
이전 댓글 표시
Hello Everybody,
I have a question really stupid but I do not know how how to open a 16 unsigned bit image.
To do that, I use the following program:
f = fopen('ucam.dat','r');
part_corr = fread(f, 80*60, 'ubit16','ieee-be');
fclose (f);
im=reshape(part_corr,80,60);
imagesc(im')
I hope you will find a good representation. In my doc, it is written:
16 bit color and resolution: 80x60
Thanks for advance!!!
댓글 수: 4
Image Analyst
2012년 8월 9일
Well it looks like your result is what you wanted to obtain, or more likely you just pasted the wrong link.
freluque
2012년 8월 9일
Image Analyst
2012년 8월 9일
No you didn't.
freluque
2012년 8월 10일
채택된 답변
추가 답변 (1개)
Image Analyst
2012년 8월 9일
Did you try it like this, to avoid having to reshape:
fread(fid, [80, 60], '*uint16', 'ieee-be');
and are you sure there are no header bytes you need to skip?
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!