How to read OX data?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
vyrus
Posts: 19
Joined: Sat, 2006-01-21, 22:14

How to read OX data?

#1 Post by vyrus »

Could someone please tell me how to read data of type OX? I only see putAndInsertXXX methods corresponds to this type in DCMTK help.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Use the corresponding findAndGetXXX() methods.

vyrus
Posts: 19
Joined: Sat, 2006-01-21, 22:14

#3 Post by vyrus »

Jörg Riesmeier wrote:Use the corresponding findAndGetXXX() methods.
Thank you, but I could not find the corresponding findAndGetXXX() methods in dcmtk354.chm help doc. Are there any other information source to look that up?

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier »

But it's in there. You could also use the online documentation.

vyrus
Posts: 19
Joined: Sat, 2006-01-21, 22:14

#5 Post by vyrus »

Jörg Riesmeier wrote:But it's in there. You could also use the online documentation.
Thanks a lot for your replys!
What I meant is that I cannot find corresponding findAndGetXXX for OX type data from the documents, including the online page you mentioned.
Anyway, I already find out findAndGetUint8Array actually does the job in my situation. :D

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#6 Post by Marco Eichelberg »

You should note that OX is an internal pseudo-type that DCMTK uses for DICOM attributes that (when received in implicit VR) might be interpreted either as OB or as OW. Access to such attributes can be done either using the Uint8 or using the Uint16 methods, and DCMTK will perform internal byte swapping if necessary to ensure that in both case you receive what you're asking for.

vyrus
Posts: 19
Joined: Sat, 2006-01-21, 22:14

#7 Post by vyrus »

Marco Eichelberg wrote:You should note that OX is an internal pseudo-type that DCMTK uses for DICOM attributes that (when received in implicit VR) might be interpreted either as OB or as OW. Access to such attributes can be done either using the Uint8 or using the Uint16 methods, and DCMTK will perform internal byte swapping if necessary to ensure that in both case you receive what you're asking for.
Thanks a lot for the explanation! That's exactly the part I didn't understand.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest