|
TPCCLIB
|
DICOM Value Representations (VRs). More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcextensions.h"#include "tpcdcm.h"Go to the source code of this file.
Functions | |
| unsigned char | dcmVRReserved (dcmvr id) |
| dcmvr | dcmVRId (const char *s) |
| char * | dcmVRName (dcmvr id) |
| size_t | dcmVRVLength (dcmvr id) |
| char * | dcmVRDescr (dcmvr id) |
| char * | dcmDA2intl (const char *orig, char *intl) |
| char * | dcmTM2intl (const char *orig, char *intl) |
| char * | dcmDT2intl (const char *orig, char *intl) |
DICOM Value Representations (VRs).
Definition in file dcmvr.c.
| char * dcmDA2intl | ( | const char * | orig, |
| char * | intl ) |
Convert DICOM date 'DA' to international format YYYY-MM-DD.
| orig | Pointer to original DICOM string. |
| intl | Pointer to string where date in international format will be written; must be allocated for at least 11 characters. |
Definition at line 179 of file dcmvr.c.
Referenced by dcmMListRead().
| char * dcmDT2intl | ( | const char * | orig, |
| char * | intl ) |
Convert DICOM datetime 'DT' to international format YYYY-MM-DD hh:mm:ss.
| orig | Pointer to original DICOM string. Should be in format YYYYMMDDhhmmss.FFFFFF+hhmm |
| intl | Pointer to string where date and time in international format will be written; must be allocated for at least 20 characters. |
Definition at line 225 of file dcmvr.c.
Referenced by dcmMListRead(), and imgReadDICOM().
| char * dcmTM2intl | ( | const char * | orig, |
| char * | intl ) |
Convert DICOM time 'TM' to international format hh:mm:ss.
| orig | Pointer to original DICOM string. |
| intl | Pointer to string where time in international format will be written; must be allocated for at least 9 characters. |
Definition at line 202 of file dcmvr.c.
Referenced by dcmMListRead().
| char * dcmVRDescr | ( | dcmvr | id | ) |
Get the DICOM VR description.
| id | VR id (DCM_VR_AE, ...). |
Definition at line 162 of file dcmvr.c.
Referenced by dcmFileReadNextElement().
| dcmvr dcmVRId | ( | const char * | s | ) |
Identify the DICOM VR based on the two-character long string.
| s | VR string. Two first characters are used. String does not need to be null-terminated. |
Definition at line 103 of file dcmvr.c.
Referenced by dcmFileReadNextElement(), dcmReadFileVR(), and dcmReadFileVRVL().
| char * dcmVRName | ( | dcmvr | id | ) |
Get the DICOM VR name.
| id | VR id (DCM_VR_AE, ...). |
Definition at line 126 of file dcmvr.c.
Referenced by dcmAddItem(), dcmFileReadNextElement(), dcmitemPrint(), dcmReadFileVR(), and dcmWriteFileVRVL().
| unsigned char dcmVRReserved | ( | dcmvr | id | ) |
Is the explicit VR (2 bytes) followed by reserved 2 bytes? If yes, then the following Value Length is also given as 32-byte integer, if no, then as 16-bit integer.
| id | VR id (DCM_VR_AE, ...). |
Definition at line 85 of file dcmvr.c.
Referenced by dcmReadFileVR(), dcmReadFileVRVL(), dcmReadTransferSyntaxUID(), and dcmWriteFileVRVL().
| size_t dcmVRVLength | ( | dcmvr | id | ) |
Get the DICOM VR max value length in bytes; 0 if not defined.
| id | VR id (DCM_VR_AE, ...). |
Definition at line 144 of file dcmvr.c.
Referenced by dcmAddItem(), dcmFileReadNextElement(), dcmFileWrite(), and dcmValueString().