HELLO DEAR,
Anyone can help me open my image as link attached.
image can get thru this link.

3 Kommentare

Image Analyst
Image Analyst am 19 Sep. 2022
Did you try imread?
Walter Roberson
Walter Roberson am 19 Sep. 2022
That is a binary file without any obvious "magic numbers" to hint what kind of data is there.
I speculate that it is possibly an .img file that needs to be matched with a .hdr file such as for use by Analyze and related software. https://www.mathworks.com/help/images/ref/analyze75read.html
mohd akmal masud
mohd akmal masud am 19 Sep. 2022
yah..actually its have two file as attached here(images)..then I dont know how to open it. Can help me?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 19 Sep. 2022

0 Stimmen

img = multibandread('my_images_it8.img', [128 128 128], 'float', 0, 'bsq', 'ieee-le');
volumeViewer(img);

4 Kommentare

mohd akmal masud
mohd akmal masud am 19 Sep. 2022
Thank you @Walter Roberson..you are amazing
mohd akmal masud
mohd akmal masud am 20 Sep. 2022
Dear @Walter Roberson, one more question. why you put the dimension is 128 128 128?
Because in my simulation setting is 64 64 64.
Look inside the .hdr file, and you will find
!matrix size [1] := 128
!matrix size [2] := 128
!matrix size [3] := 128
and you will also find
!number format := short float
"short float" is also known as single precision, and is 4 bytes per entry
needed_bytes = 128*128*128*4
needed_bytes = 8388608
... and it turns out the .img file is exactly 8388608 bytes long, so it is exactly consistent with the arrays being 128 x 128 x 128.
And the images look fine with volume viewer.
mohd akmal masud
mohd akmal masud am 20 Sep. 2022

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

KSSV
KSSV am 19 Sep. 2022

0 Stimmen

Your is is a hdr image. Read about hdfread

Kategorien

Produkte

Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by