How to change the image of .bim file

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 Comments

That's what is in the file. It looks like a different projection.
It same file. What I get is the from saggital view. I dont know how view it as axial view.
If you examine the data in the attached .bim file, it matches exactly what is displayed by the "imagesc" function.

Sign in to comment.

Answers (0)

Categories

Products

Release

R2023a

Asked:

on 10 Sep 2024

Commented:

on 16 Sep 2024

Community Treasure Hunt

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

Start Hunting!