How to open .int image Using Matlab?

6 Ansichten (letzte 30 Tage)
mohd akmal masud
mohd akmal masud am 25 Jan. 2022
Beantwortet: yanqi liu am 26 Jan. 2022
Hi all,
I have generate image from Monte Carlo simulation.
the file extension is .int
Anyone know how to open it using matlab?
file as attached.
  1 Kommentar
DGM
DGM am 25 Jan. 2022
Bearbeitet: DGM am 25 Jan. 2022
Well, I don't really know how to open a .int file. As @Benjamin Thompson notes, .int is not a supported image type, but that's not to say that it's not just something common with an uncommon extension.
That said, the attached file is empty. Rather, it's a file full of nothing but 8.2kB of zeros. There's no header, no content, and no apparent structure. As such, I can't really use this for testing potential methods to open it. You might want to check whatever process you used to create the file.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

yanqi liu
yanqi liu am 26 Jan. 2022
fid = fopen('point1.int','rb');
a = fread(fid, 'double');
fclose(fid);
but it all zeros

Weitere Antworten (1)

Benjamin Thompson
Benjamin Thompson am 25 Jan. 2022
Calling imformats on my Windows machine, "INT" is not in the list. Google says that may be an SGI file format? If you are not running MATLAB on a machine supporting INT (call imformats to check) then maybe you can find a converter tool to work with it in a more common format.

Community Treasure Hunt

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

Start Hunting!

Translated by