How to use .img format files ?
Afficher commentaires plus anciens
How can we use .img format files (images ) in MATLAB code, or is there anyway to convert these files(images) into .jpg format ?
1 commentaire
Anum
le 9 Avr 2014
Réponses (2)
Dishant Arora
le 9 Avr 2014
fid = fopen('fileName.img');
data = fread(fid, dataDimensions, precision)
close(fid)
for more info:
doc fread
doc fopen
And use imwrite to save it as jpeg.
Walter Roberson
le 9 Avr 2014
0 votes
.img files are not image files that are handled by imread(), and they are also not just plain binary files as hinted by Dishant.
.img files can be produced by Analyze; for those see http://www.mathworks.com/matlabcentral/answers/71339-how-can-i-read-or-open-a-img-file-using-matlab
.img files can be DICOM files; for those see dicomread()
1 commentaire
Walter Roberson
le 9 Avr 2014
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!