DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Mon, 2018-08-20, 23:46

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu, 2017-11-23, 07:35 
Offline

Joined: Fri, 2005-12-09, 11:40
Posts: 16
Hi!
Any help is appreciated!
I whant to extract the CT pixeldata for computation (get HU).
> dcmj2pnm.exe +opw CT.dcm CT.pgm
Gives me a .pgm ASCII file that looks like this.
"P2
512 512
65535
15568 15568 15568 15568 ..."

But I get 15568(3CD0 Hex) instead of 973(03CD Hex) for a specific pixel.
The Pixel Value is 973 and a HU value of -51 according to Fiji Dicom viewer.
The DICOM file pixels looks like this in a HEX editor: cd 03 cd 03 cd 03

Part of the DICOM dump:
...
| (0002,0010) : UI Len: 20 HeaderTransferSyntaxUID Value: [1.2.840.10008.1.2.1]
...
| (0028,0002) : US Len: 2 SamplesperPixel Value: [1]
| (0028,0004) : CS Len: 12 PhotometricInterpretation Value: [MONOCHROME2 ]
| (0028,0010) : US Len: 2 Rows0028 Value: [512]
| (0028,0011) : US Len: 2 Columns0028 Value: [512]
| (0028,0030) : DS Len: 4 PixelSpacing Value: [1\1 ]
| (0028,0100) : US Len: 2 BitsAllocated0028 Value: [16]
| (0028,0101) : US Len: 2 BitsStored Value: [12]
| (0028,0102) : US Len: 2 HighBit Value: [11]
| (0028,0103) : US Len: 2 PixelRepresentation Value: [0]
| (0028,1050) : DS Len: 6 WindowCenter Value: [50\300]
| (0028,1051) : DS Len: 8 WindowWidth Value: [350\2000]
| (0028,1052) : DS Len: 6 RescaleIntercept Value: [-1024 ]
| (0028,1053) : DS Len: 2 RescaleSlope Value: [1 ]
| (0028,1054) : LO Len: 2 Rescaletype Value: [HU]
...


Top
 Profile  
 
PostPosted: Thu, 2017-11-23, 20:45 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1963
Location: Oldenburg, Germany
dcmj2pnm creates a a rendered output of the DICOM image (in various formats). The output pixel values are always unsigned, i.e. not in Hounsfield Units.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group