I have tried analyze75read command, but getting errors, may be because i dont have .hdr file. But basically this is the medical image dataset which I downloaded from an authentic site and there is no .hdr file avalaible even I saw on some other sites, but everywhere medical images are stored in .img format so there must be some way to use it. Below is the link of my .img file. http://1drv.ms/PQdIox I will be thankful If anyone can help me out.
How to use .img format files ?
42 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How can we use .img format files (images ) in MATLAB code, or is there anyway to convert these files(images) into .jpg format ?
Respuestas (2)
Dishant Arora
el 9 de Abr. de 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.
0 comentarios
Walter Roberson
el 9 de Abr. de 2014
.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 comentario
Walter Roberson
el 9 de Abr. de 2014
Ver también
Categorías
Más información sobre Import, Export, and Conversion en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!