Convert image in Analyze format to Dicom images

I am working in Medical Image Processing. I am in need to convert the image in Analyze format to Dicom images. Kindly tell me the solution.
Thanks in advance.

Answers (1)

I don't know what Analyze format is. What program made the images? Have you looked in the File Exchange to see if anyone has uploaded a reader or writer for that format? Have you looked up "Working with DICOM files" in the MATLAB help documentation?

5 Comments

Analyze format consists of two files (*.hdr and *.img). The .hdr is the header file of the image and the image data is stored in .img file. Image data consists of several slices in it. To process the image we need to read it slice by slice. I can read the slices from this file then How I need to convert it to dicom image?
OK, so you say that you " can read the slices from this file". That's good - at least can read your input images and that part is solved.
Now, if you have read the section of the help I referred you to, you would have found this:
Writing Image Data or Metadata to a DICOM File
To write image data or metadata to a file in DICOM format, use the dicomwrite function. This example writes the image I to the DICOM file ankle.dcm.
dicomwrite(I,'ankle.dcm')
Since you're still asking, I presume you didn't want to read the help for dicomwrite(), or just prefer for someone to give you code to do it, or you just don't understand how to execute the dicomwrite() function call. Is that true? Where exactly are you stuck calling dicomwrite()? I don't have or use dicom format files, or analyze format files, so I can't really write anything for you.
Sir, I want to determine the pixel spacing and slice thickness of the dicom image to proceed with(as dicom images have these information in them which can be retrieved using dicominfo function in matlab). So I first need to convert my available database (images of ANALYZE FORMAT) to dicom and then get the information from it.
But when I try to write the slice, that I read earlier, as a dicom image, i could not get information (such as pixel intensity, slice thickness). Is there any possibility to get this value? If no, please tell how to determine the pixel spacing and slice thickness from the slice that I read from the ANALYZE FORMATTED image.
The dicom file you create will not somehow magically figure out the parameters and store them - you have to tell it. You have an "Analyze" format reader program already - I suggest you look at that, or else use knowledge from some other source such as the CT or MRI instrument itself, or figure it out using a phantom of known dimensions and measuring it.
Sir, Can you suggest me formula to calculate the pixel spacing and slice thickness of a slice?

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Asked:

on 2 Jul 2013

Edited:

on 1 Oct 2016

Community Treasure Hunt

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

Start Hunting!