Re: raw images
Posted by
Richard VanMetter on
Dec 08, 2012; 3:22pm
URL: http://imagej.273.s1.nabble.com/raw-images-tp5001066p5001077.html
Hi Lisa -
I think that ImageJ can easily provide the two files you would like to obtain from each DICOM file.
1. Open your DICOM image in ImageJ.
2. Save a raw data file as follows: select menu option ">File>Save As" and then select "Raw Data...". The raw image data from your DICOM image will be saved in a file with the same name, but with the extension ".raw". This DOES NOT include any of the header information, but only the pixel data.
3. Save the DICOM header as follows: select menu option ">Image>Show Info". This will open and "info" window that shows you all the DICOM header information along with some additional image information, like the number of bits per pixel, and the width, height and depth of your image file.
4. Select ">File>Save As" from the menu on the info window and save this information in a file (it will be an ascii text file readable in any text editor). The default file name for this text file is "Info-(image name).txt". You may change it if you wish.
5. Close all windows by selecting ">File>Close All" from the ImageJ menu.
If you have many images, you can automate this process by recording a macro. If you plan to work with images in the future, learning how to create ImageJ macros will be a useful skill. I would refer you to resources for learning the macro language on the ImageJ Developer Resources page "
http://imagej.nih.gov/ij/developer/index.html". You can also get to this page from within ImageJ by selecting ">Help>Dev. Resources..." from the menu.
Richard VanMetter
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html