How to change the image of .bim file

6 visualizaciones (últimos 30 días)
mohd akmal masud
mohd akmal masud el 10 de Sept. de 2024
Comentada: Jatin el 16 de Sept. de 2024
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 comentarios
mohd akmal masud
mohd akmal masud el 10 de Sept. de 2024
It same file. What I get is the from saggital view. I dont know how view it as axial view.
Jatin
Jatin el 16 de Sept. de 2024
If you examine the data in the attached .bim file, it matches exactly what is displayed by the "imagesc" function.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by