How to change the image of .bim file
12 ビュー (過去 30 日間)
古いコメントを表示
Dear All,
I have one fie as attached.
Then I wrote the code like below, and the image like below.
clc
clear all
close all
fid = fopen('test1.bim', 'r', 'ieee-le');%result1.bim is your 2D planar
data = fread(fid, inf, '*float');
fclose(fid);
data = reshape(data,128,128);
figure, imagesc(data)

But actually, my image supposedly to be like below:

Anyone can help me?
3 件のコメント
Jatin
2024 年 9 月 16 日
If you examine the data in the attached .bim file, it matches exactly what is displayed by the "imagesc" function.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!