Get VR value?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
xstreamsoftware
Posts: 6
Joined: Tue, 2008-07-01, 11:37

Get VR value?

#1 Post by xstreamsoftware »

Is it possible to get VR value if we know the tag . I've searched the whole documentation and i hardly found any information.Thanks in advance

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 »

Do you mean the VR of an attribute defined in the data dictionary or the VR of a data element contained in a DICOM data set?

xstreamsoftware
Posts: 6
Joined: Tue, 2008-07-01, 11:37

#3 Post by xstreamsoftware »

VR of a data element in the DICOM data set.

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 »

What about DcmObject::getVR()?

Code: Select all

    /** return the value representation assigned to this object.
     *  If object was read from a stream, this method returns the VR
     *  that was defined in the stream for this object. It is, therefore,
     *  possible that the VR does not match the one defined in the data
     *  dictionary for the tag assigned to this object.
     *  @return VR of this object
     */
    DcmEVR getVR() const;

Post Reply

Who is online

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