[Dcmlib] Question regarding reading data entries other then strings

Neerav Patel neeravpatel at hotmail.com
Tue Jan 22 18:41:12 CET 2008


Hi,
 
I have a dicom image with a (x,y,z) parameter sitting at 0x0018, 0x5212 and it looks like the following when I open it up with a dicom viewer
 
How does one grab that,  I tried using 
 
float * temp = new float[3];
temp = (float * ) f->GetEntryBinArea( 0x0018, 0x5212 );  
 
but the data is all garbage in there.  what am I doing wrong?
 
Thanks for the help in advance.
 
Neerav Patel
 
0002,0000,File Meta Elements Group Len=1560002,0001,File Meta Info Version=2560002,0002,Media Storage SOP Class UID=1.2.840.10008.5.1.4.1.1.6.1.0002,0003,Media Storage SOP Inst UID=1.2.246.352.91.0004141.20061121092559304644.0002,0010,Transfer Syntax UID=1.2.840.10008.1.2.0002,0012,Implementation Class UID=1.2.246.352.70.2.1.70008,0008,Image Type=ENDORECTAL0008,0016,SOP Class UID=1.2.840.10008.5.1.4.1.1.6.1.0008,0018,SOP Instance UID=1.2.246.352.91.0004141.20061121092559304644.0008,0020,Study Date=200609180008,0030,Study Time=0008,0050,Accession Number=0008,0060,Modality=US0008,0070,Manufacturer=Varian Medical Systems. Inc.0008,0090,Referring Physician's Name=0008,1048,?=Mackenzie.Michael 0008,1090,Manufacturer's Model Name=VariSeed0010,0010,Patient's Name=..0523749.t 0010,0020,Patient ID=..0523749.t 0010,0030,Patient Date of Birth=0010,0040,Patient Sex=0018,1020,Software Version=7.1 0018,5210,?=1.00000000\.000000000\.000000000\.000000000\-1.00000000\.0000000000018,5212,?=.000000000\.000000000\.0000000000018,6018,?=00018,601A,?=00018,601C,?=8000018,601E,?=6000018,6020,?=00018,6022,?=00018,6024,?=30018,6026,?=30018,602C,?=4333.-..0018,602E,?=........0020,000D,Study Instance UID=1.2.246.352.91.0004141.20061121092559.0020,000E,Series Instance UID=1.2.246.352.91.0004141.20061121092559.1.0020,0010,Study ID=41410020,0011,Series Number=0020,0013,Image Number=10020,0020,Patient Orientation=0020,0052,Frame of Reference UID=1.2.246.352.91.0004141.20061121092559.1.1.0020,1040,Position Reference=0028,0002,Samples Per Pixel=10028,0004,Photometric Interpretation=MONOCHROME20028,0010,Rows=6000028,0011,Columns=8000028,0034,Pixel Aspect Ratio=145\147 0028,0100,Bits Allocated=80028,0101,Bits Stored=80028,0102,High Bit=70028,0103,Pixel Representation=00028,1050,Window Center=128.0000000028,1051,Window Width=370.0000007FE0,0010,Pixel Data=480000
_________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20080122/2ca64d1e/attachment.html>


More information about the Dcmlib mailing list