forked from dcm4che/dcm4che
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utility dcm2str to apply Attributes Format Pattern to dicom file and/…
…or command line parameters fix dcm4che#385
- Loading branch information
Showing
3 changed files
with
61 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 17 additions & 18 deletions
35
...ool/dcm4che-tool-dcm2str/src/main/resources/org/dcm4che3/tool/dcm2str/messages.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
usage= dcm2str -p PATTERN <file(s)|directory(ies)> -s <[seq/]attr=value>... | ||
usage= dcm2str -p <pattern> [-s <[seq/]attr=value>].. [<file>..][<directory>..] | ||
try=Try `dcm2str --help' for more information. | ||
description=\n\ | ||
Apply Attributes Format Pattern either to one or more DICOM files and/or DICOM file(s) in one or more directories. \ | ||
If individual attributes are specified, the attributes of the DICOM file(s) shall be overwritten by the specified \ | ||
attributes before the Attributes Format Pattern is applied. \n\-\n\ | ||
attributes before the Attributes Format Pattern is applied.\n-\n\ | ||
Options: | ||
example=\n\ | ||
Examples: \n\ | ||
=> dcm2str -p {0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd} image.dcm \n\ | ||
Apply Attributes Format Pattern to the specified DICOM file. \n\ \n\ | ||
=> dcm2str -p {0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd} image.dcm -sStudyInstanceUID=1.2.3 \ | ||
-sSeriesInstanceUID=1.2.3.4 -sSOPInstanceUID=1.2.3.4.5 \n\ | ||
Examples:\n\ | ||
=> dcm2str -p '{0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd}' image.dcm\n\ | ||
Apply Attributes Format Pattern to the specified DICOM file.\n\n\ | ||
=> dcm2str -p '{0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd}' image.dcm -sStudyInstanceUID=1.2.3 \ | ||
-sSeriesInstanceUID=1.2.3.4 -sSOPInstanceUID=1.2.3.4.5\n\ | ||
Overwrite attributes of the specified DICOM file with specified DICOM attributes and then apply Attributes Format Pattern \ | ||
to the specified DICOM file. \n\ \n\ | ||
=> dcm2str -p {0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd} image.dcm /path-to-other-DICOM-files-directory \ | ||
-sStudyInstanceUID=1.2.3 -sSeriesInstanceUID=1.2.3.4 -sSOPInstanceUID=1.2.3.4.5 \n\ | ||
to the specified DICOM file.\n\n\ | ||
=> dcm2str -p '{0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd}' image.dcm /path-to-other-DICOM-files-directory \ | ||
-sStudyInstanceUID=1.2.3 -sSeriesInstanceUID=1.2.3.4 -sSOPInstanceUID=1.2.3.4.5\n\ | ||
Overwrite attributes of the specified DICOM file and of other DICOM files in the directory with the specified DICOM \ | ||
attributes and only then apply Attributes Format Pattern to DICOM file and to other DICOM files in the directory. \n\ \n\ | ||
=> dcm2str -p {0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd} image.dcm /path-to-other-DICOM-files-directory \n\ | ||
Apply Attributes Format Pattern to the specified DICOM file and also to the other DICOM files in the specified directory. \n\ \n\ | ||
=> dcm2str -p {0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd} -sStudyInstanceUID=1.2.3 -sSeriesInstanceUID=1.2.3.4 \ | ||
-sSOPInstanceUID=1.2.3.4.5 \n\ | ||
attributes and only then apply Attributes Format Pattern to DICOM file and to other DICOM files in the directory.\n\n\ | ||
=> dcm2str -p '{0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd}' image.dcm /path-to-other-DICOM-files-directory\n\ | ||
Apply Attributes Format Pattern to the specified DICOM file and also to the other DICOM files in the specified directory.\n\n\ | ||
=> dcm2str -p '{0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd}' -sStudyInstanceUID=1.2.3 -sSeriesInstanceUID=1.2.3.4 \ | ||
-sSOPInstanceUID=1.2.3.4.5\n\ | ||
Apply Attributes Format Pattern to DICOM attributes passed as command line parameters. | ||
pattern=Specify Attributes Format Pattern to be applied. | ||
str=Specify attributes added to the object(s). It can be specified by keyword or tag (in hex), \ | ||
e.g. StudyInstanceUID=1.2.3 or 0020000D=1.2.3. Attributes in nested Datasets can be specified by including the \ | ||
keyword/tag value of the sequence attribute, e.g. 00400275/00400009 for Scheduled Procedure Step ID in the Request \ | ||
Attributes Sequence. | ||
converted={0} -> {1} | ||
Attributes Sequence. | ||
missing-pattern-opt=Missing required option: p |