gdcm2pnm(1) GDCM gdcm2pnm(1)NAME
gdcm2pnm - .SH "SYNOPSIS"
gdcmdiff [options] file-in bitmap-out
DESCRIPTION
The gdcm2pnm command line program takes as input a DICOM file and produces a rendered bitmap file.
PARAMETERS
file-in DICOM input filename
bitmap-out Bitmap output filename
options
options
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
Simple usage
gdcm2pnm will take as input DICOM and render it into a bitmap file using the window/level attributes value.
$ gdcm2pnm input.dcm output.png
It is much different from the gdcmraw or gdcmimg command line tool as it will render a DICOM image. This means that the output will be
rendered in 8bits ready for display.
SEE ALSO gdcm2vtk(1), gdcmimg(1)COPYRIGHT
Copyright (c) 2006-2011 Mathieu Malaterre
Version 2.2.0 Tue Feb 5 2013 gdcm2pnm(1)
Check Out this Related Man Page
gdcmscanner(1) GDCM gdcmscanner(1)NAME
gdcmscanner - Scan a directory containing DICOM files.
SYNOPSIS
gdcmscanner [options] directory
DESCRIPTION
The gdcmscanner is a command line tool to quickly extract value from a set of DICOM attribute in a DICOM File-Set.
PARAMETERS
-d --dir DICOM directory
-t --tag %d,%d DICOM tag(s) to look for
options
-p --print Print output.
-r --recursive Recusively descend directory.
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 usageSimple usage
In order to display all the value for Patient Name (0010,0010) in the directory name gdcmData, simply do:
$ gdcmscanner -t 10,10 -d gdcmData -p
Complex usage
Because gdcmscanner does not support progress, you have to wait until all files are traversed to see any results. This is quite cumbersome,
on UNIX this can be worked around with the following trick:
$ find gdcmData -type d -exec gdcmscanner -t 10,10 -d {} -p ;
So all directory are locally traversed (no child directory are recursively traversed), which means results comes out much faster.
SEE ALSO gdcmdump(1), gdcmraw(1)COPYRIGHT
Copyright (c) 2006-2011 Mathieu Malaterre
Version 2.2.0 Tue Feb 5 2013 gdcmscanner(1)
Is there a way to see or print a sub code?
Sometime a sub could be already defined, but in the debug mode (so, interactively) it could be already out of screen.
So, I would think about a way to check if the sub is defined (just 'defined' is not a problem) and how it is defined.
Also, if... (4 Replies)
the text file like below's
input:
aaaaaaaaafdsfsda
sdfsadfasdfasfds
sdfadsf
asdfadf
asdfa
adfsfsafas
sdfsfafads
asdfasdfsa
I want to print out consecutive two line
output:
aaaaaaaaafdsfsda (1 Reply)
Hello,
I have the files(#600) like as..
0001.dcm
0002.dcm
0003.dcm
............
..........
0600.dcm
I would like to move these files to two different folder, say "a" and "b" folders. I want to make that the first five dcm files(0001.dcm, 0002.dcm, .... 0005.dcm) is moved to "a" folder,... (4 Replies)
need help to print the below ..
Content of file looks like below ..
SCHEMA1. TABLE1
SCHEMA2. TABLE2
SCHEMA3. TABLE3
read lines from above file and print o/p as below
print output like read 1st line and print
SELECT SCHEMA1.TABLE1
print output like read 2st line and print ... (4 Replies)