Skip to content

Commit

Permalink
Utility dcm2str to apply Attributes Format Pattern to dicom file and/…
Browse files Browse the repository at this point in the history
…or command line parameters #385
  • Loading branch information
vrindanayak committed Jan 10, 2019
1 parent cc318d9 commit 74af6de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions dcm4che-tool/dcm4che-tool-dcm2str/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
usage: dcm2str -p <pattern> [-s <[seq/]attr=value>]..
usage: dcm2str -p <pattern> [-s <[seq/]attr=value>].. --
[<file>..][<directory>..]

Apply Attributes Format Pattern either to one or more DICOM files and/or
Expand All @@ -25,15 +25,16 @@
Apply Attributes Format Pattern to the specified DICOM file.

=> 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
-sStudyInstanceUID=1.2.3 -sSeriesInstanceUID=1.2.3.4
-sSOPInstanceUID=1.2.3.4.5 -- image.dcm
Overwrite attributes of the specified DICOM file with specified DICOM
attributes and then apply Attributes Format Pattern to the specified DICOM
file.

=> 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
-sStudyInstanceUID=1.2.3 -sSeriesInstanceUID=1.2.3.4
-sSOPInstanceUID=1.2.3.4.5 -- image.dcm
/path-to-other-DICOM-files-directory
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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
usage= dcm2str -p <pattern> [-s <[seq/]attr=value>].. [<file>..][<directory>..]
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. \
Expand All @@ -9,12 +9,12 @@ 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\
=> dcm2str -p '{0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd}' -sStudyInstanceUID=1.2.3 -sSeriesInstanceUID=1.2.3.4 \
-sSOPInstanceUID=1.2.3.4.5 -- image.dcm\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\
=> dcm2str -p '{0020000D,hash}/{0020000E,hash}/{00080018,hash}/{rnd}' -sStudyInstanceUID=1.2.3 \
-sSeriesInstanceUID=1.2.3.4 -sSOPInstanceUID=1.2.3.4.5 -- image.dcm /path-to-other-DICOM-files-directory \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\
Expand Down

0 comments on commit 74af6de

Please sign in to comment.