![]() |
![]()
| ![]() |
![]()
NAMEdcm2mnc - convert sets of DICOM files to one or more MINC format files. SYNOPSISdcm2mnc [<options>] <input-list> <output-dir> dcm2mnc -help DESCRIPTIONThe dcm2mnc command is used to convert DICOM format files to MINC format. DICOM (Digital Imaging and Communications in Medicine) format is used by many vendors of medical imaging equipment as a standard means of data interchange. The DICOM specification is extremely complex and includes protocols for data interchange and communications as well as the specifics of the data format. In most cases, tens or even hundreds of DICOM files must be combined to produce a single MINC file. In normal operation, the input-list will consist of the names of one or more files or directories. The program scans all specified input files and directories and attempts to identify groups of files that should be combined into a single MINC file. Once these groups (or "series") of DICOM files are identified, the program analyzes the data for each series and attempts to determine the correct geometry and ancillary information to be incorporated into the MINC file. If all goes well, one or more MINC files will be created in one or more subdirectories created in the specified directory output-dir. These directories and files will be automatically named according to the patient's name, the acquisition date, acquisition time, series identifier, and modality. For a variety of reasons, medical imaging manufacturers have chosen to implement a number of proprietary extensions to the DICOM format. This program attempts to be very general, but it does some extra checking for specific proprietary fields where useful or necessary. However, as device settings change and software is updated, the precise details of the DICOM output for a given device may shift. Different devices from the same manufacturer may produce substantially different DICOM output. OPTIONSNote that options can be specified in abbreviated form (as long as they are unique) and can be given anywhere on the command line. Output file options
Siemens mosaic specific optionsThese two options control the manner in which Siemens mosaic data is converted. Siemens scanners commonly represent fMRI data as a "mosaic" of subimages combined into a single large image. Normally these are in what we call "ascending" order, but if your functional image is not converted properly, you may need to specify one of these options. NOTE that the mosaic order is often not the same as the slice acquisition order.
Other options
Generic options for all commandsFILENAMESTo avoid naming collisions when converting a large set of input DICOM files to a smaller set of MINC output files, dcm2mnc automatically generates the names of output files according to various parameters of the DICOM file information. The normal behavior is to place all of the output files in a subdirectory of the given output directory which has its name derived from the patient's name and the study date and time as follows: patientname_yyyymmdd_hhmmss/ The individual files are named according to the patient name, study date and time, series identifer, and modality information as follows: patientname_yyyymmdd_hhmmss_series_scan_modality.mnc The optional scan information includes the echo number ('e<n>'), slice number ('sl<n>'), time series position ('d<n>'), phase number ('p<n>'), or chemical shift ('cs<n>'). The optional modality information consists of either the string "_pet" or "_mri". No suffix is added for unrecognized modalities. The -fname and -dname commands allow the user to override the standard file naming behavior by specifying alternative output directory and file formats. The arguments to these options are template strings that will be expanded to include information from the DICOM sequences in specified locations. Replacements are specified by a '%' character followed by a single alphabetic character, as follows:
The default file name convention is therefore given by the format string: %N_%D_%T_%A%s%e%t%p%c%m and the default directory name is given by the format string: %N_%D_%T If you wish to avoid creating a subdirectory, you may do so by giving a zero-length string as the argument to the -dname option: dcm2mnc -dname ´´ filenames... AUTHORSPeter Neelin and Richard D. Hoge Please direct all complaints and inquiries to Robert Vincent (bert@bic.mni.mcgill.ca) BUGSProbably many. For best results, output files should be checked by a competent human to verify that the conversion was performed properly. DICOM is a very complex format, and it is difficult to anticipate all of the possible combinations of fields and values that may be encountered. If you have a problem, please contact the maintainer. It will be extremely useful if you can provide an example dataset that exhibits the problem you have discovered. SEE ALSOFor more information on DICOM, visit the NEMA (National Electrical Manufacturer's Association) website at http://dicom.nema.org and also see David Clunie's excellent website on medical image formats at http://www.dclunie.com Many manufacturers create "DICOM Conformance Statements" for each software release associated with their medical imaging products. These can be useful sources of information. COPYRIGHTSCopyrights 1993-2005 by Peter Neelin for the Montreal Neurological Institute.
|