How to change the image of .bim file

조회 수: 5 (최근 30일)
mohd akmal masud
mohd akmal masud 2024년 9월 10일
댓글: Jatin 2024년 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
mohd akmal masud
mohd akmal masud 2024년 9월 10일
It same file. What I get is the from saggital view. I dont know how view it as axial view.
Jatin
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 CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by