Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
convertion of file formats

Subject: convertion of file formats

From: maya

Date: 11 Aug, 2012 15:34:06

Message: 1 of 2

Hi,

I have downloaded some MRI images of brain with .img format.I can view that images with MRI macro software. I wanted to do sgmentation of those images.But they are not opening in Matlab.So is there any technique to conert the .img files to .dcm format
I am stuck up with this,please help

regards
Maya

Subject: convertion of file formats

From: Steven_Lord

Date: 13 Aug, 2012 13:49:26

Message: 2 of 2



"maya" <mayaeapen@googlenews.com> wrote in message
news:k05u1e$7g5$1@newscl01ah.mathworks.com...
> Hi,
>
> I have downloaded some MRI images of brain with .img format.

I think that you're probably using ".img format" to refer to one of the many
different image file formats with that extension (see item 5 on the
Wikipedia page.)

http://en.wikipedia.org/wiki/IMG_%28file_format%29

Without more information about the specific file format of this particular
IMG file, it's going to be difficult if not impossible to read into MATLAB
or any other software program.

> I can view that images with MRI macro software. I wanted to do sgmentation
> of those images.But they are not opening in Matlab.So is there any
> technique to conert the .img files to .dcm format

Search the documentation for, or ask the manufacturer of, your "MRI macro
software" for the specific format of IMG files they're using. If it turns
out that they're using a standard image file format just with a specialized
extension, you could try changing the extension and using IMREAD:

http://www.mathworks.com/help/techdoc/ref/imread.html

If not you're probably going to have to write your own file reader/writer
using the low-level file I/O functions along with the documentation for the
specific file format in which the IMG file has been written.

http://www.mathworks.com/help/techdoc/ref/f16-5702.html#f16-14516

Or see if your MRI macro software itself can export the image to a standard
image file format.

http://en.wikipedia.org/wiki/Image_file_formats

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us