dicom2 is a free command-line driven program which allows you to convert medical images and DICOM files to various other formats, while optionally performing some rudimentary image processing tasks...
reads DICOM file, or raw data-sets (ACR/NEMA).
converts non-encapsulated (native) syntax to PNG, BMP, TARGA, raw, DICOM (any syntax).
lists DICOM tags in a human-readable form.
allows batch conversion.
extracts multiple-frame files.
renames destination files using user-defined pattern based on DICOM tags.
accumulates set of files into one image (to generate masks).
provides some image processing functions: mask, crop, halve, flip, window.
|Table of contents|
|dicom2 was not designed to handle all DICOM tricks, but I tried to extend its capabilities in some ways. It is (and will remain) freeware, but I would like to keep track of its users: feel free to send me any suggestions, advises or desires, as well as DICOM samples...|
enhancements in the way the options will be processed.
New parameter ib added to the -d and --syntax options, allowing use of Implicit Big Endian syntax.
Extended the tolerance regarding very strange (and old) ACR/NEMA 2.0 files.
Version 1.9n, 19 February 2007:
This release fixes a minor bug that would occur when reading a few specific instances of Siemens NM files.
Version 1.9m, 12 February 2007:
This release fixes a few bugs people reported recently. Thank you for your feedback. Binaries are also about 13% smaller (not that they were really big, mind you).
Version 1.9l, 7 March 2005:
Wow, no update in a long time. This new release just fixes some bug people reported in the last few years (fortunately not too many). thank you guys. The only major change is that, at last, the DICOM dictionary file (dicom.din) is not needed anymore, it is bundled within the binary: no need to install it in awkward locations anymore, you can safely remove your old dictionary.
Version 1.9h, 14 Jul. 2000:
I wish I had some time to document the changes and update this site :( Maybe later in 2001. I'm still maintaining this software from time to time, removing bugs and adding some functions.
Version 1.8, 21 Jan. 1998:
PNG format supported (new -p option).
New DICOM2 environment variable to set default options.
New --compression option to control the compression method used by some destination formats.
New --resample option to control the resampling process (to 8 or 16 bits).
New --get=[max][:min][:mean] option to get maximum/minimum/mean pixel values in frame.
New --timer option to time each call to dicom2 (returns elapsed time).
I/Os have been optimized. Expect 30% to 100% speed-up in some cases. Check performance tests.
New parameters [=il|el|eb] added to -d, allowing DICOM conversion to new syntax.
New parameter [=n] added to --halve, allowing to halve many times in a single call.
New parameters [=center:width] added to --win, allowing user-specified windowing arguments.
New optional [y|n] parameters added to --name, --rank, --reverse, --sort.
Option --nowarn has been replaced by option --warn[=y|n], but remains for backward compatibility.
The resampling process has been slightly modified when dealing with monochrome images (no min).
Win 95/NT users: the Borland Redistributable Run Time DLL is no more needed :) (see Download page)
Fixed some very nice bugs and potential memory leaks (and introduced new one :).
Version 1.7, 18 Dec. 1997:
Independent version number added to the DICOM dictionary (displayed at start-up). Update it.
Windows NT support (tested and updated to check dictionary in winnt/ directories).
New accumulating mode --acc=min.
New NT and Linux performance tests using a Pentium II @ 300 mhz, 96 meg RAM.
a small bug preventing Linux version to find the dictionary in some cases.
A minor bug corrupting MONOCHROME1conversion to TARGA has been fixed.
Small changes in the DICOM dictionary. Update it.
Version 1.5, 1 Oct. 1997:
Files have been moved to a new location !
Planar configuration 1 (color-by-plane) is now supported.
Conversion to true DICOM format is now supported. See -d.
New "How to..." section describing how to extract frames from multiple-frame files.
Converting a single frame from a multiple-frame file to DICOM is now supported.
New renaming pattern fields: cur_fr and cur_fr0, related to the current frame number.
A new --step=n option allows the user to process every n-th file only.
--frame option has been enhanced,
allowing the specification of ranges.
Conversion from RGB (color-by-pixel) is now supported, as well as samples/pixel > 1.
Access to a particular frame in a multiple frames file is now allowed. See --frame.
Images stored as a stream of bytes (VR = OB) are now handled correctly.
Sequences Item (VR = SQ) are now stored correctly.
BMP format is now better supported (an alignment bug has been fixed).
TEXT conversion is now performed before any image processing functions.
A VR =DA and VR=TM bug has been fixed.
dicom2 performs a bit faster.