Functions to read the value stored in DICOM tags structures (DICOM_List *)
·NEMA_Value_Date() for dates (VR=DA and DT)
·NEMA_Value_Time() for times (VR=TM and DT)
·NEMA_Value_Name() for names (VR=PN)
·NEMA_Value_Str() for character strings (VR=AE, CS, LO, SH, UI, AS, LT, ST, UT, OB and UN)
·NEMA_Value_Hex() for hexadecimal values (VR=OB, OW, OX and UN)
·NEMA_Value_Int() for integer values (VR=DS, IS, SS, SL, US, UH, AT, UL and OW)
·NEMA_Value_Float() for floating point values (VR=IS, DS, FL and FD)
Syntax
TomoVision_Date * NEMA_Value_Date(
HWND hwnd,
DICOM_List *tag,
unsigned short vr=0
) ;
TomoVision_Time * NEMA_Value_Time(
HWND hwnd,
DICOM_List *tag,
unsigned short vr=0
) ;
TomoVision_Name * NEMA_Value_Name(
HWND hwnd,
DICOM_List *tag,
unsigned short vr=0
) ;
char ** NEMA_Value_Str(
HWND hwnd,
DICOM_List *tag,
unsigned short vr=0
) ;
char * NEMA_Value_Hex(
HWND hwnd,
DICOM_List *tag,
unsigned short vr=0
) ;
int * NEMA_Value_Int(
HWND hwnd,
DICOM_List *tag,
unsigned short vr=0
) ;
float * NEMA_Value_Float(
HWND hwnd,
DICOM_List *tag,
unsigned short vr=0
) ;
Parameters
hwnd
Current Window. (Note: You can use the "hwnd" external variable, so you don't have to search very far to find it.)
tag
Pointer to a tag.
vr
Current VR (by default, it is extracted from the tag parameter).
Return value
This function return a vector of pointers to the desired element types.
Remarks
Requirements
Header:
TomoVision_DICOM.hpp
Library:
TomoVision_DICOM.lib
Example
See also