5#include "tpcclibConfig.h"
21typedef struct DCM_SOP_ITEM {
32static DCM_SOP_ITEM dcm_sop[]={
33 {
"invalid",
"invalid SOP"},
34 {
"1.2.840.10008.5.1.4.1.1.1",
"Computed Radiography Image Storage"},
35 {
"1.2.840.10008.5.1.4.1.1.12.1",
"X-Ray Angiographic Image Storage"},
36 {
"1.2.840.10008.5.1.4.1.1.128",
"Positron Emission Tomography Image Storage"},
37 {
"1.2.840.10008.5.1.4.1.1.130",
"Enhanced PET Image Storage"},
38 {
"1.2.840.10008.5.1.4.1.1.128.1",
"Legacy Converted Enhanced PET Image Storage"},
39 {
"1.2.840.10008.5.1.4.1.1.2",
"CT Image Storage"},
40 {
"1.2.840.10008.5.1.4.1.1.20",
"NM Image Storage"},
41 {
"1.2.840.10008.5.1.4.1.1.30",
"Parametric Map Storage"},
42 {
"1.2.840.10008.5.1.4.1.1.3.1",
"Ultrasound Multiframe Image Storage"},
43 {
"1.2.840.10008.5.1.4.1.1.4",
"MR Image Storage"},
44 {
"1.2.840.10008.5.1.4.1.1.4.1",
"Enhanced MR Image Storage"},
45 {
"1.2.840.10008.5.1.4.1.1.4.2",
"MR Spectroscopy Storage"},
46 {
"1.2.840.10008.5.1.4.1.1.6.1",
"Ultrasound Image Storage"},
47 {
"1.2.840.10008.5.1.4.1.1.66",
"Raw Data Storage"},
48 {
"1.2.840.10008.5.1.4.1.1.66.1",
"Spatial Registration Storage"},
49 {
"1.2.840.10008.5.1.4.1.1.66.2",
"Spatial Fiducials Storage"},
50 {
"1.2.840.10008.5.1.4.1.1.66.3",
"Deformable Spatial Registration Storage"},
51 {
"1.2.840.10008.5.1.4.1.1.66.4",
"Segmentation Storage"},
52 {
"unknown",
"unknown SOP"}
66 if(s==NULL ||
strnlen(s, 3)<3)
return(0);
70 while(strcmp(dcm_sop[i].uid,
"unknown")!=0) {
71 if(strcmp(dcm_sop[i].uid, s)==0)
return(i);
88 while(strcmp(dcm_sop[j].uid,
"unknown")!=0) {
89 if(i==j)
return(dcm_sop[j].name);
92 return(dcm_sop[j].name);
106 while(strcmp(dcm_sop[j].uid,
"unknown")!=0) {
107 if(i==j)
return(dcm_sop[j].uid);
110 return(dcm_sop[j].uid);
123 if(s==NULL ||
strnlen(s, 3)<3)
return(dcm_sop[0].name);
127 while(strcmp(dcm_sop[i].uid,
"unknown")!=0) {
128 if(strcmp(dcm_sop[i].uid, s)==0)
return(dcm_sop[i].name);
131 return(dcm_sop[i].name);
unsigned int dcmSOPIdentify(const char *s)
char * dcmSOPUIDName(const char *s)
char * dcmSOPUID(unsigned int i)
char * dcmSOPName(unsigned int i)
size_t strnlen(const char *s, size_t n)
Header file for libtpcdcm.
Header file for library libtpcextensions.