1dcmdspfn(1)                       OFFIS DCMTK                      dcmdspfn(1)
2
3
4

NAME

6       dcmdspfn - Export standard display curves to a text file
7

SYNOPSIS

9       dcmdspfn [options]
10

DESCRIPTION

12       Command  line  program  converts  a  DCMTK monitor / camera / printer /
13       scanner  characteristics  file  to  tabbed  text  file  describing  the
14       characteristic   curve   (CC),  the  display  function  and  the  post-
15       standardized curve (PSC) for an 8 bit display. The 256 values  of  each
16       curve  can  be  visualized by a common spread sheet program. Above that
17       the display curve (without CC and PSC)  can  also  be  computed  for  a
18       specified  luminance/OD  range (min/max) and a certain number of Device
19       Driving Levels (DDL).
20

PARAMETERS

22       dcmfile-in  DICOM input filename to be dumped
23

OPTIONS

25   general options
26         -h   --help
27                print this help text and exit
28
29              --version
30                print version information and exit
31
32              --arguments
33                print expanded command line arguments
34
35         -q   --quiet
36                quiet mode, print no warnings and errors
37
38         -v   --verbose
39                verbose mode, print processing details
40
41         -d   --debug
42                debug mode, print debug information
43
44         -ll  --log-level  [l]evel: string constant
45                (fatal, error, warn, info, debug, trace)
46                use level l for the logger
47
48         -lc  --log-config  [f]ilename: string
49                use config file f for the logger
50
51   input options
52         +Im  --monitor-file  [f]ilename: string
53                text file describing the monitor characteristics
54
55         +Ic  --camera-file  [f]ilename: string
56                text file describing the camera characteristics
57
58         +Ip  --printer-file  [f]ilename: string
59                text file describing the printer characteristics
60
61         +Is  --scanner-file  [f]ilename: string
62                text file describing the scanner characteristics
63
64         +Il  --lum-range  [m]in max: float
65                minimum and maximum luminance (cd/m^2)
66
67         +Io  --od-range  [m]in max: float
68                minimum and maximum optical density (OD),
69                automatically converted to luminance
70
71   creation options
72         +Ca  --ambient-light  [a]mbient light: float
73                ambient light value (cd/m^2, default: file f)
74
75         +Ci  --illumination  [i]llumination: float
76                illumination value (cd/m^2, default: file f)
77
78         +Dn  --min-density  [m]inimum optical density: float
79                Dmin value (default: off, only with +Ip and +Io)
80
81         +Dx  --max-density  [m]aximum optical density: float
82                Dmax value (default: off, only with +Ip and +Io)
83
84         +Cd  --ddl-count  [n]umber of DDLs: integer
85                number of Device Driving Levels
86                (default: 256, only with --lum/od-range)
87
88         +Cf  --curve-fitting  [n]umber: integer
89                use polynomial curve fitting algorithm with order n
90                (0..99, default: file setting or cubic spline)
91
92   output options
93         +Og  --gsdf  [f]ilename: string
94                write GSDF curve data to file f
95
96         +Oc  --cielab  [f]ilename: string
97                write CIELAB curve data to file f
98

NOTES

100       The output file describing the CC, GSDF or CIELAB and PSC for an 8  bit
101       display  system  (monitor, camera, printer or scanner) is a simple text
102       file. Lines starting with a '#' are treated as comments and, therefore,
103       skipped  as  well  as  blank  lines.  An input file can for instance be
104       created by the command line tool dconvlum.
105
106       The ambient light value possibly defined in the characteristics file is
107       also  used  for  the calculation. In this case the value is part of the
108       file comment header as well as the number of DDL (device driving level)
109       values,  the  absolute  luminance range (measured in candela per square
110       meter) and the range of the JND index (just  noticable  difference)  in
111       case  of  GSDF. Alternatively, the ambient light value can be specified
112       as a command line option. When setting the two luminance values instead
113       of  reading  a monitor characteristic file as input the luminance range
114       is linearly divided by the number of DDLs.
115
116       For printers and scanners the illumination can be specified in addition
117       to the reflected ambient light (both in the characteristics file and on
118       the command line). The header of the output file includes  the  minimum
119       and maximum Optical Density (OD) instead of the luminance range. Please
120       note that the OD values in  the  input  file  have  to  be  ordered  in
121       descending order (in contrast to the luminance values used for monitors
122       and cameras). The DDL value 0 always means black  (darkest  value)  and
123       the maximum DDL value means white (brightest value, clear film).
124
125       The  data  folder  contains  sample  characteristics file for monitors,
126       cameras, printers and scanners. See DICOM standard  part  14  for  more
127       details on display calibration and Barten's model (including GSDF).
128

LOGGING

130       The  level  of  logging  output  of  the various command line tools and
131       underlying libraries can be specified by the  user.  By  default,  only
132       errors  and  warnings  are  written to the standard error stream. Using
133       option --verbose also informational messages  like  processing  details
134       are  reported.  Option  --debug  can be used to get more details on the
135       internal activity, e.g. for debugging purposes.  Other  logging  levels
136       can  be  selected  using option --log-level. In --quiet mode only fatal
137       errors are reported. In such very severe error events, the  application
138       will  usually  terminate.  For  more  details  on the different logging
139       levels, see documentation of module 'oflog'.
140
141       In case the logging output should be written to file  (optionally  with
142       logfile  rotation),  to syslog (Unix) or the event log (Windows) option
143       --log-config can be used.  This  configuration  file  also  allows  for
144       directing  only  certain messages to a particular output stream and for
145       filtering certain messages based on the  module  or  application  where
146       they  are  generated.  An  example  configuration  file  is provided in
147       <etcdir>/logger.cfg).
148

COMMAND LINE

150       All command line tools  use  the  following  notation  for  parameters:
151       square  brackets  enclose  optional  values  (0-1), three trailing dots
152       indicate that multiple values are allowed (1-n), a combination of  both
153       means 0 to n values.
154
155       Command line options are distinguished from parameters by a leading '+'
156       or '-' sign, respectively. Usually, order and position of command  line
157       options  are  arbitrary  (i.e.  they  can appear anywhere). However, if
158       options are mutually exclusive the rightmost appearance is  used.  This
159       behaviour  conforms  to  the  standard  evaluation rules of common Unix
160       shells.
161
162       In addition, one or more command files can be specified  using  an  '@'
163       sign  as  a  prefix to the filename (e.g. @command.txt). Such a command
164       argument is replaced by the content  of  the  corresponding  text  file
165       (multiple  whitespaces  are  treated  as a single separator unless they
166       appear between two quotation marks) prior to  any  further  evaluation.
167       Please  note  that  a command file cannot contain another command file.
168       This  simple  but  effective  approach  allows  to   summarize   common
169       combinations  of  options/parameters  and  avoids longish and confusing
170       command lines (an example is provided in file <datadir>/dumppat.txt).
171

FILES

173       <datadir>/camera.lut - sample characteristics file of a camera
174       <datadir>/monitor.lut - sample characteristics file of a monitor
175       <datadir>/printer.lut - sample characteristics file of a printer
176       <datadir>/scanner.lut - sample characteristics file of a scanner
177

SEE ALSO

179       dconvlum(1), dcod2lum(1)
180
182       Copyright (C) 1999-2010 by OFFIS e.V., Escherweg  2,  26121  Oldenburg,
183       Germany.
184
185
186
187Version 3.6.0                     6 Jan 2011                       dcmdspfn(1)
Impressum