How to open 2D planar image .bim format
조회 수: 3 (최근 30일)
이전 댓글 표시
Dear all,
I have the file as attached, the format is .bim (as attached)
Actually this is 2D planar image.
Anyone can help me to open it in Matlab?
The image supposed to be as below:
댓글 수: 0
채택된 답변
Aditya Singh
2023년 7월 4일
Hi,
To my understanding, you want to open a .bim format file in MATLAB.
This comment answers how to open the .bim format file https://in.mathworks.com/matlabcentral/answers/1934105-i-am-trying-to-read-a-image-file-of-format-result-int-that-is-integer-image-file-not-able-to-open-wi#comment_2801333
It explains that doing
fid = fopen('result1.bim', 'r', 'ieee-le');
data = fread(fid, inf, '*float');
fclose(fid);
data = reshape(data,128,128);
imagesc(data)
would achive the same. Please refer to the comment for more detail explanantion.
Hope it helps!
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!