CarpeDICOM Users Guide-W-Example Phantoms
CarpeDICOM Users Guide-W-Example Phantoms
Contents
1. Introduction to CarpeDICOM...............................................................................................................2
2. Default Configurations.........................................................................................................................2
3. Preferences..........................................................................................................................................2
4.1 Study................................................................................................................................................3
4.3 Images.............................................................................................................................................3
Focal Points.............................................................................................................................................4
4.7 Plans................................................................................................................................................4
4.8 Dose.................................................................................................................................................6
5 Reading DICOM...................................................................................................................................6
5.1 Anonymization........................................................................................................................7
2. Default Configurations
Much like POSDA, CarpeDICOM uses a handful of configuration files to populate values for each
modality supported. There exists at least one configuration file for each modality. Modalities such as
plans have more due to their multiple nested sequences. Any tag represented in a configuration file will
be added to the resultant DICOM corresponding to that configuration.
Each DICOM record is constructed by importing all the tags found in the Study.config file then the
corresponding series configuration tags. In the case of non-brachytherapy plans, the Beam.config and
BeamSegment.config are used to populate beam objects and their control points.
All configuration files are written in XML with the tags grouped by Group number. Certain tags are
calculated within CarpeDICOM and are therefore not included in the configurations.
DataSetParameters.config
The DataSetParameters configuration file contains parameters describing the dimensions of the
phantom space and its reference frame. Changes made to this file affect all subsequent studies.
Image orientation (patient) is defined here as is gantry tilt and the origin of the reference frame.
3. Preferences
The Preferences dialog found under Edit | Preferences… specifies phantom creation parameters. The
default write directory is defined here as well as the error logging location. Internal errors of any
severity are logged to this file for debugging purposes.
The transfer syntax use when creating phantoms may also be defined here. See section 10 of Part 5:
Data Structures and Encoding of the DICOM Standard for more information regarding transfer syntax.
Whether the UIDs are refreshed automatically after a phantom is created can also be specified in this
dialog.
Phantom parameters can be saved and reloaded within the Create Phantom dialog by selecting File |
Save Template. To open a saved template, either drag and drop the template file (*.cdcm) into the
Overview pane on in the main window or select File | Open Template in the Create Phantom dialog.
After a geometric object has been added to the list of phantom objects, it can be removed and placed
back into the parameter editing panel simply by highlighting the object and clicking “-“.
The parameters in the Spatial Extents section define the imaging area centered on the origin. The
phantom objects will be encoded in the pixel data according to which Patient Position and Slice
Orientation is selected at create time.
Once the list of object are created, you can enter the patient ID and the select to “add CT Series”, or any
other modality
Example: creating a phantom with a step of air (HU= -1000) on the front surface.
4.3 Images
The Image Tag View contains every tag for the selected image that will be written out to file. Editing
a tag value here that is shared between images in an image series will change that value for each
image containing that tag. Overlapping ROI regions will have the pixel value of the last added ROI in
the overlap.
The Image View displays the image data in the Pixel Data tag. The range of displayable pixel values
is 0 to 32768, black being 0 and white being 32768.
* Note: A GDI+ API limitation causes pixel values between 32768 and 65536 to display in
CarpeDICOM as 0. Pixel values in this range will still be written out to file correctly.
*Note: Image data is created using 16 bits per pixel, regardless of what the Bits Allocated tag is set
to.
A transformed image series and with a registration object relating the original and transformed
series will be produced. The registration object will contain two transformation matrices, the first
relating the frame of reference (FOR) of the registration object to the FOR of the original image
series. The second matrix relates the FOR of the translated image series to the original series.
* See section C.8.7.5.1.2 in Part 3: Information Object Definitions of the DICOM Standard for
more information regarding Positioner Primary and Positioner Secondary Angles.
Focal Points
If Use Focal Point is selected, images will be calculated using a focal point-based projection
algorithm. The focal point will reside a distance of Focal Length from the XA image plane with
the phantom in between. The mid-point of the line of focus from the focal point to the center
of the XA image plane will always reside at the image space origin.
4.7 Plans
Block – By default, block data is calculated to envelop the open field. The extents of the block
will be within the area of the Jaws, the greatest left MLCX leaf position and least right MLCX leaf
position.
Compensator – The position is calculated from the number of compensator rows, columns and
pixel spacing defined in the Beam.config file. The thickness and transmission default to 50mm
and 0.5, respectively. If the Compensator Mounting Position is set to DOUBLE_SIDED, Source to
Compensator Distance data will be calculated and default to 200mm for each pixel.
Wedge – When a wedge is added to a beam, the option to include the wedge in any control
point for that beam becomes available.
Dynamic beams allow movement while the beam is delivering dose. Therefore the total number
of control points for dynamic beams does not have to be even.
For static beams, CarpeDICOM adds control points in pairs. By default, the second control point
will have a meterset weight of zero.
The enumerated sources available for use have been modeled on real isotope data. Sources
that are primarily gamma-emitting will not have a Source Strength value and those that are
primarily beta-emitting will. Additionally, Source Strength Units will be AIR_KERMA_RATE for
gamma sources and DOSE_RATE_WATER for beta.
When adding a channel to an application setup, the selected source will be used in that channel.
If the Brachy Treatment Type is set to PDR, pulse-related tags are added to the channel
sequence. The Number of Pulses value defaults to 25 and Pulse Repetition Interval to 50.
If Source Movement Type is set to STEPWISE, a channel’s Source Applicator Step Size will be
added to the channel sequence and default to 5mm.
4.8 Dose
The Dose Data View displays the dose data for the selected longitudinal position from the Grid
Frame Offset Vector. Pixel Rows, Columns and Spacing are the same as those used for the image
series pixels. The dose values are the raw values from the Pixel Data before scaling. Pixels are 16
bits regardless of what Bits Allocated is set to.
For overlapping ROIs, the dose in the intersecting region will be dose of the last added ROI.
5 Reading DICOM
Existing DICOM files may be read in and displayed by either selecting File | Open Patient… to read in a
directory of DICOM or File | Open File… to read a single file; or drag and drop a file or directory into the
Overview pane on the left-hand side of the tool.
Files are displayed in the Overview pane in hierarchical order, highlighting the referential integrity
between series for a study.
If a file references another but that file does not exist in the data set, it will show up in red.
If a file has multiple references, the file will be displayed under the first reference and will
show up yellow.
If a file has an SOP Instance UID that matches another file in the dataset, both files will show
up orange.
The shared attributes for a study and series are displayed in the study and series items, respectively.
Attributes that appear in all files within a study or series but have differing values will appear with
“<Values Differ>” as the value. Edits made to attributes in a study or series item will be applied to all
files within that study or series.
While in ‘Read’ mode, a number of options are available that were not in ‘Create’ mode.
5.1 Anonymization
Data may be anonymized by selecting Edit | Anonymize… By default, the anonymization routine
will only anonymize Names (VR=PN), Dates and Times (VR=TM, DA), UIDs (VR=UI) and any attribute
in the patient demographic group (0x0010). Names and UIDs are randomly generated and Dates
and Times are set to the current date/time.
The anonymization dialog allows for additional anonymization by way of the Anonymize.config file.
Attributes included in this configuration file will also be randomly anonymized in keeping with the
allowable value length for the VR of the tag.
The “Remove Private Attributes” option is selected by default and will remove attributes that are
not found in the DICOM standard dictionary. Be aware that un-selecting this may allow patient
information residing in the private tags to persist into the anonymized data.
* Note: Patient information burnt into images (such as DRRs) will NOT be removed.
5.2 DICOM Information Display
Information from the DICOM standard may be displayed while viewing DICOM instances by
selecting Tools | Display Info. With this option displayed, hovering the mouse over an attribute
will show the allowable VM range, VR type and length, IOD and module name, tag type and
description.
If you need more information, the DICOM standard along with the IEC standard are also available
under Help | DICOM Standards.
At the instance level, attributes may be copied and pasted between instances by right-clicking the
tag(s) and selecting Copy or via the shortcut Ctrl+c. To paste attributes on the clipboard,
highlighting the sequence or neighboring attributes you would like to paste in or near, right-clicking
and selecting Paste or by way of the shortcut Ctrl+v.
Simple Queries:
For simple queries, enter the group and element number along a value you wish to search on. If
no value is entered, the search will look for all files with that attribute regardless of its value.
Press search to initiate the search.
Advanced Queries:
Select the Advanced tab and enter your SQL query into the text box. Hit Search to initiate the
search.
* Note: In order to load data from an advanced query, ensure you include the “PatientID” and
“FilePath” columns found in the DCMRecord table.
To load a file, highlight the file and hit “Load File”. Only that file will be loaded. To load the dataset
containing a file matching your query, highlight a file and hit “Load Patient” to load that file and all
other files associated with its Patient ID.
Files loaded will be copied locally to the hidden directory .dbTemp in the write location specified in
Edit | Preferences…
* Note: Loading data will cause CarpeDICOM to copy it locally across the network, a task that may
take a while for overseas users.
Rows will display in red if the value of an attribute between both files differs. If one file contains the
attribute but the other does not, that attribute will display grey.
Images and doses are visually diffed in the Images or Doses tabs, respectively. The left-most image
is the difference image. Two images or doses with a different number of rows, columns, transfer
syntaxes or bits allocated will not be diffed. Matching pixels between images or doses will appear
pink, and close matches will appear white. The more different the pixel, the closer to black the pixel
will appear.
CarpeCompare works as a standalone tool as well and does not have to be accessed through
CarpeDICOM.