Azzera filtri
Azzera filtri

How to change the image of .bim file

135 visualizzazioni (ultimi 30 giorni)
mohd akmal masud
mohd akmal masud il 10 Set 2024 alle 2:06
Commentato: Jatin il 16 Set 2024 alle 9:16
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 Commenti
mohd akmal masud
mohd akmal masud il 10 Set 2024 alle 20:32
It same file. What I get is the from saggital view. I dont know how view it as axial view.
Jatin
Jatin il 16 Set 2024 alle 9:16
If you examine the data in the attached .bim file, it matches exactly what is displayed by the "imagesc" function.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by