Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Analysis Software Support
 *.dcm vs *.img files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

merrill
Starting Member

USA
9 Posts

Posted - Aug 14 2003 :  4:30:05 PM  Show Profile  Reply with Quote
I am a neophyte when it comes to working with imaging data and am used to the system of retrieving *.img files for anatomical data from the ADW. Can someone tell me what the difference is between those old files and the new *.dcm files that are automatically transferred to Bristol? Also, is there a way to convert the *.dcm files to *.img? Half the subjects in our study were run prior to the Bristol system, so it would make things easier if all the data were consistent.
Thanks!

charles.michelich
BIAC Alum

USA
183 Posts

Posted - Aug 14 2003 :  5:43:25 PM  Show Profile  Reply with Quote
Kari,

The format of files matching the following patterns are commonly:
*.dcm - DICOM
I.*   - Signa5 (ADW)
*.img - Volume, Float, Analyze 7.5, or Analyze 7.5 SPM
*.bxh - BXH
The formats store the image data and other information in different ways. DICOM and Signa5 store one slice in each file while Volume, Float, and Analyze7.5 store one 3D volume in each file. The BXH format supports data stored in a variety ways. All of these formats can be read by readmr.

The old system of retrieving data from the ADW used the Signa5 format. Someone must have converted your images into an *.img format already. The new system transfers the data as DICOM files (and also creates a BXH header for reading the data). You can convert these to Volume format by typing the following in MATLAB

anat = readmr;

In the GUI, choose one of the *.dcm files from the image series you want to convert and choose the "DICOM_Volume" format from the File Type drop down menu. Then type:
writemr('T:\BIAC\Example.01\Data\Anat\20030101_12345\series002\anat.img',anat,'Volume');
where 'T:\BIAC\Example.01\Data\Anat\20030101_12345\series002\anat.img is the name and location of your ouput image.

You can also use the new BXH format tools that avoid many of the issues with image format compatibility. See http://www.biac.duke.edu/research/bxh/ and http://www.biac.duke.edu/forums/topic.asp?TOPIC_ID=122 for more information. Using the BXH tools you would type the following in MATLAB:

anat = readmr;

In the GUI, choose one of the *.bxh file for the image series you want to convert. Then type:
writemr(anat,'T:\BIAC\Example.01\Data\Anat\20030101_12345\series002\anat.img','Volume');
where 'T:\BIAC\Example.01\Data\Anat\20030101_12345\series002\anat.img is the name and location of your ouput image.

Enjoy,
Chuck
Go to Top of Page

merrill
Starting Member

USA
9 Posts

Posted - Aug 15 2003 :  09:50:54 AM  Show Profile  Reply with Quote
Thanks for the clarification, Chuck. I don't get a DICOM_Volume option in the GUI, only "Volume," which I assume is not the same. Am I missing something?
Go to Top of Page

charles.michelich
BIAC Alum

USA
183 Posts

Posted - Aug 15 2003 :  10:24:03 AM  Show Profile  Reply with Quote
Kari,

READMR has supported DICOM_Volume since Apr 2002. Perhaps you are using an old version of the software. Are you working on a computer here at BIAC or somewhere else?

Chuck
Go to Top of Page

merrill
Starting Member

USA
9 Posts

Posted - Aug 15 2003 :  2:23:23 PM  Show Profile  Reply with Quote
Chuck- I'm outside of BIAC.
Go to Top of Page

tankersley
BIAC Alum

USA
143 Posts

Posted - Nov 28 2006 :  11:18:00 AM  Show Profile  Reply with Quote
I would like to write over a few of the voxels in an anatomical image, and am wondering if

1.I can use the function writemr to rewrite DICOM files, and if so what's wrong with the following syntax:

writemr(new_brain, 'new_brain.bxh',{'BXH','DICOM','','mr5c*.dcm'})

2. If writemr doesn't support .dcm files, is there a different function I can use

3. Or should I just rewrite the anatomical data as .img files? I only need the anatomical data for registering and normalizing whole brains, so I'm thinking it wouldn't matter if the file is stored as slices vs. volumes?

Thanks,

Dharol
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Nov 28 2006 :  11:31:35 AM  Show Profile  Reply with Quote
You can't use writemr to write DICOM files -- not many tools support writing DICOM files as it is very complex. If you're doing this in MATLAB, I suggest using writemr to write out the new data with a .bxh file. If you need an Analyze-style file, then use bxh2analyze.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.42 seconds. Snitz Forums 2000