1gdcmgendir(1)                        GDCM                        gdcmgendir(1)
2
3
4

NAME

6       gdcmgendir - Tool to generate a DICOMDIR file from a File-Set.
7

SYNOPSIS

9       gdcmgendir [options] file-in file-out
10

DESCRIPTION

PARAMETERS

13       file-in   DICOM input filename
14
15       file-out  DICOM output filename
16

OPTIONS

18   Parameters
19   OPTIONS
20         -i --input     DICOM filename or directory
21         -o --output    DICOM filename or directory
22         -r --recursive          recursive.
23            --descriptor          descriptor.
24            --root-uid               Root UID.
25            --resources-path         Resources path.
26
27   general options
28         -h   --help
29                print this help text and exit
30
31         -v   --version
32                print version information and exit
33
34         -V   --verbose
35                verbose mode (warning+error).
36
37         -W   --warning
38                warning mode, print warning information
39
40         -E   --error
41                error mode, print error information
42
43         -D   --debug
44                debug mode, print debug information
45
46   environment variable
47         GDCM_ROOT_UID Root UID
48         GDCM_RESOURCES_PATH path pointing to resources files (Part3.xml, ...)
49

Typical usage

NOTE

52       One may have to run some preliminary steps in order to get gdcmgendir
53       to generate the DICOMDIR file. Namely two steps:
54
55       · Batch renaming of the DICOM filename into something compatible with
56         ISO 9660 filename convention
57       · Convert all DICOM file into the Explicit VR Little Endian
58         Uncompressed (1.2.840.10008.1.2.1)
59       Step 1. can be solved in a numerous way. Eg. on UNIX environment this
60       could either be solved using the mkisofs command line tool. filename
61       should not contains any extension since the VR CS does not allow for
62       the '.' character. Only upper case, digit 0-9, the space ' ' and the
63       underscore '_' character are valid in VR CS, with a maximum of 8 bytes.
64       Another simple tool that can be handy is 'rename' in conjunction with
65       'basename'.
66       Step 2. can simply be achieved using the gdcmconv command line tool:
67         $ for i in `ls IMG*`; do gdcmconv --raw --force $i /tmp/out/$i; done

SEE ALSO

69       gdcmconv(1), gdcmanon(1), rename(1)
71       Copyright (c) 2006-2010 Mathieu Malaterre
72
73
74
75Version 2.0.16                  Tue Jul 26 2011                  gdcmgendir(1)
Impressum