gdcmraw (1) Linux Manual Page
NAME
gdcmraw – .TH "gdcmraw" 1 "Fri Oct 29 2010" "Version 2.0.16" "GDCM"
NAME
gdcmraw – .SH "SYNOPSIS"
gdcmraw [options] file-in file-out
DESCRIPTION
The gdcmraw tool is mostly used for development purpose. It is used to extract a specific binary field from a DICOM DataSet.
PARAMETERS
file-in DICOM input filename file-out output filename
OPTIONS
PARAMETERS
-i --input Input filename -o --output Output filename -t --tag Specify tag to extract value from.
OPTIONS
-S --split-frags Split fragments into multiple files. -p --pattern Specify trailing file pattern (see split-frags). -P --pixel-data Pixel Data trailing 0.
general options
- h-- help
print this help text and exit -
v-- version
print version information and exit -
V-- verbose
verbose
mode(warning + error)
.-
W-- warning
warning mode,
print warning information
- E-- error
error mode,
print error information
- D-- debug
debug mode,
print debug information
Typical usage
Copy Attribute Value to file
This will extract the value at Tag (0025,101b):
$ gdcmraw -i GE_MR_0025xx1bProtocolDataBlock.dcm -t 25,101b -o pdb.raw
Extract Pixel Data
If you do not specify any tag, the Pixel Data element is the default one. So for instance to grab the Pixel Data from an image:
$ gdcmraw -i test.acr -o test.raw
You can then for example compute the md5sum of this pixel data (very useful):
$ md5sum test.raw f845c8f283d39a0204c325654493ba53 test.raw
Encapsulated Syntax
When the Pixel Data is encapsulated, multiple fragments can be used to store a single slice image:
$ gdcmdump D_CLUNIE_CT1_J2KR.dcm
...
(7fe0,0010) OB # u/l,1 Pixel Data
(fffe,e000) ?? [] # 0,1 Item
(fffe,e000) ?? ff\4ff\51
