⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dicom_print.h

📁 3D reconstruction, medical image processing from colons, using intel image processing for based clas
💻 H
📖 第 1 页 / 共 2 页
字号:
    char imageBoxSOPInstanceUID[DICOM_UI_LENGTH + 1];    unsigned short imagePosition;    char polarity[DICOM_CS_LENGTH + 1];    char magnificationType[DICOM_CS_LENGTH + 1];    char smoothingType[DICOM_CS_LENGTH + 1];#if STANDARD_VERSION < VERSION_AUG1993    char magnificationFactor[DICOM_DS_LENGTH + 1];#else    char requestedImageSize[DICOM_DS_LENGTH + 1];#endif    DCM_OBJECT *object;		/* Preformatted image object */    LST_HEAD *referencedImageSequence;    LST_HEAD *referencedVOILUTSeq;    LST_HEAD *referencedImageOverlayBoxSeq;}   PRN_BASICIMAGEBOX;/* BIB attribute flags */#define PRN_BIB_K_IMAGEPOSITION		0x1#define PRN_BIB_K_POLARITY		0x2#define PRN_BIB_K_MAGNIFICATIONTYPE	0x4#define PRN_BIB_K_SMOOTHINGTYPE		0x8#define PRN_BIB_K_REQUESTEDIMAGESIZE	0x10#define PRN_BIB_K_IMAGEMODULE		0x20/* following two are needed for version less than Aug 1993 */#define PRN_BIB_K_MAGNIFICATIONFACTOR	0x40#define PRN_BIB_K_IMAGEBOXSOPCLASSUID	0x80/* Mandatory attributes to be provided by SCU and SCP */#define REQUIRED_BIB_SCU_NSETATTRIB	(PRN_BIB_K_IMAGEPOSITION | \					PRN_BIB_K_IMAGEMODULE)#define REQUIRED_BIB_SCP_NSETATTRIB	(PRN_BIB_K_IMAGEPOSITION | \					PRN_BIB_K_POLARITY |\					PRN_BIB_K_IMAGEMODULE)/*	BASIC ANNOTATION BOX SOP CLASS	------------------------------*/typedef struct {    void *reserved[2];		/* For use by LST facility */    PRN_TYPE type;    long babAttributeFlag;    char annotationBoxSOPClassUID[DICOM_UI_LENGTH + 1];    char annotationBoxSOPInstanceUID[DICOM_UI_LENGTH + 1];#if STANDARD_VERSION < VERSION_AUG1993    char annotationPosition[DICOM_IS_LENGTH + 1];#else    unsigned short annotationPosition;#endif    char textString[DICOM_LO_LENGTH + 1];}   PRN_BASICANNOTATIONBOX;/* BAB attribute flags */#define PRN_BAB_K_ANN0TATIONPOSITION	0x1#define PRN_BAB_K_TEXTSTRING		0x2/* Mandatory attributes to be provided by SCU and SCP */#define REQUIRED_BAB_SCU_NSETATTRIB PRN_BAB_K_ANN0TATIONPOSITION#define REQUIRED_BAB_SCP_NSETATTRIB (PRN_BAB_K_ANN0TATIONPOSITION | \					PRN_BAB_K_TEXTSTRING)/*	PRINT_JOB SOP CLASS	-------------------*//* enumerated values for execution status */#define PENDING		"PENDING"#define PRINTING	"PRINTING"#define PRINTDONE	"DONE"#define PRINTFAIL	"FAILURE"/* enumerated values for execution status info */#define PRINTQUEUED		"QUEUED"#define PRINTNOSUPPLYMGZ	"NO_SUPPLY_MGZ"#define PRINTNORECEIVEMGZ	"NO_RECEIVE_MGZ"#define PRINTSUPPLYEMPTY	"SUPPLY EMPTY"#define PRINTRECEIVERFULL	"RECEIVER FULL"#define PRINTFILMJAM		"FILM JAM"typedef struct {    void *reserved[2];		/* For use by LST facility */    PRN_TYPE type;    long printJobAttributeFlag;    char printJobSOPClassUID[DICOM_UI_LENGTH + 1];    char printJobSOPInstanceUID[DICOM_UI_LENGTH + 1];    char executionStatus[DICOM_CS_LENGTH + 1];    char executionStatusInfo[DICOM_CS_LENGTH + 1];    char creationDate[DICOM_DA_LENGTH + 1];    char creationTime[DICOM_TM_LENGTH + 1];    char printPriority[DICOM_CS_LENGTH + 1];    char printerName[DICOM_SH_LENGTH + 1];    char originator[DICOM_AE_LENGTH + 1];}   PRN_BASICPRINTJOB;/* PJ attribute flags */#define PRN_PJ_K_EXECUTIONSTATUS	0x1#define PRN_PJ_K_EXECUTIONSTATUSINFO	0x2#define PRN_PJ_K_CREATIONDATE		0x4#define PRN_PJ_K_CREATIONTIME		0x8#define PRN_PJ_K_PRINTPRIORITY		0x10#define PRN_PJ_K_PRINTERNAME		0x20#define PRN_PJ_K_ORIGINATOR		0x40/* Mandatory attributes to be provided by SCU and SCP */#define REQUIRED_PJ_SCU_NGETATTRIB	0x0#define REQUIRED_PJ_SCP_NGETATTRIB (PRN_PJ_K_EXECUTIONSTATUS | \			PRN_PJ_K_EXECUTIONSTATUSINFO | PRN_PJ_K_PRINTPRIORITY)/*	PRINTER SOP CLASS	-----------------*//* enumerated values for PRINTER status */#define	PRINTERNORMAL		"NORMAL"#define	PRINTERWARNING		"WARNING"#define	PRINTERFAILURE		"FAILURE"/* enumerated values for printer status info code */#define	NO_INFO		"NO-INFO"#define	SUPPLY_EMPTY	"SUPPLY_EMPTY"#define	SUPPLY_LOW	"SUPPLY_LOW"#define	RECEIVER_FULL	"RECEIVER_FULL"#define	FILM_JAM	"FILM_JAM"typedef struct {    void *reserved[2];		/* For use by LST facility */    PRN_TYPE type;    long attributeFlag;    char printerSOPclassUID[DICOM_UI_LENGTH + 1];    char printerSOPinstanceUID[DICOM_UI_LENGTH + 1];    char status[DICOM_CS_LENGTH + 1];    char statusInfoCode[DICOM_CS_LENGTH + 1];    char name[DICOM_LO_LENGTH + 1];    char manufacturer[DICOM_LO_LENGTH + 1];    char manufacturerModelName[DICOM_LO_LENGTH + 1];    char deviceSerialNumber[DICOM_LO_LENGTH + 1];    char softwareVersion[DICOM_LO_LENGTH + 1];    char dateOfLastCalibration[DICOM_DA_LENGTH + 1];    char timeOfLastCalibration[DICOM_TM_LENGTH + 1];}   PRN_PRINTER;/* PRINTER attribute flags */#define PRN_PRINTER_K_STATUS		0x1#define PRN_PRINTER_K_STATUSINFO	0x2#define PRN_PRINTER_K_NAME		0x4#define PRN_PRINTER_K_MANUFACTURER	0x8#define PRN_PRINTER_K_MODELNUMBER	0x10#define PRN_PRINTER_K_SERIALNUMBER	0x20#define PRN_PRINTER_K_SOFTWAREVERSION	0x40#define PRN_PRINTER_K_DATEOFCALIBRATION	0x80#define PRN_PRINTER_K_TIMEOFCALIBRATION	0x100/* Mandatory flags to be provided bby SCU and SCP */#define REQUIRED_PRINTER_SCU_NGETATTRIB	0x0#define REQUIRED_PRINTER_NGETATTRIB	(PRN_PRINTER_K_STATUS | \					PRN_PRINTER_K_STATUSINFO)/*	PREFORMATTED GREYSCALE IMAGE SOP CLASS	--------------------------------------*//* enumerated values for bits allocated */#define ALLOCATEDEIGHT  8#define ALLOCATEDSIXTEEN 16/* enumerated values for bits stored */#define STOREDEIGHT 8#define STOREDTWELVE 12/* enumerated values for high bit */#define HIGHBITSEVEN 7#define HIGHBITELEVEN 11typedef struct {    void *reserved[2];		/* For use by LST facility */    unsigned short rows;    unsigned short cols;    char pixelratio[DICOM_IS_LENGTH + 1];    unsigned short bitsAllocated;    unsigned short bitsStored;    unsigned short highBit;    unsigned short pixelRepresentation;    /* structure for pixel data, defined as OB or OW */}   GREYSCALE_IMAGE_ATTRIBUTES;#define GREYSCALE_ROWS			0x1#define GREYSCALE_COLS			0x2#define GREYSCALE_PIXELRATIO		0x4#define GREYSCALE_BITSALLOCATED		0x8#define GREYSCALE_BITSSTORED		0x10#define GREYSCALE_HIGHBIT		0x20#define GREYSCALE_PIXELREPRESENTATION	0x40#define GREYSCALE_PIXELDATA		0x80#define GREYSCALE_NGETATTRIB	(GREYSCALE_ROWS | GREYSCALE_COLS | \				GREYSCALE_PIXELRATIO | \				GREYSCALE_BITSALLOCATED | \				GREYSCALE_BITSSTORED | GREYSCALE_HIGHBIT | \				GREYSCALE_PIXELREPRESENTATION | \				GREYSCALE_PIXELDATA)/*	PREFORMATTED COLOR IMAGE SOP CLASS	----------------------------------*/typedef struct {    void *reserved[2];		/* For use by LST facility */    unsigned short samplesPerPixel /* = 3 */ ;    unsigned short photometricInterpretation /* has value RGB */ ;    unsigned short planarConfiguration /* = 0x0001 */ ;    unsigned short rows;    unsigned short cols;    char pixelratio[DICOM_IS_LENGTH + 1];    unsigned short bitsAllocated;    unsigned short bitsStored;    unsigned short highBit;    unsigned short pixelRepresentation /* = 0x0000 */ ;    /* structure for pixel data, defined as OB or OW */}   COLOR_IMAGE_ATTRIBUTES;#define COLOR_SAMPLESPERPIXEL		0x1#define COLOR_PHOTOMETRICINTERPRETATION	0x2#define COLOR_PLANARCONFIGURATION	0x4#define COLOR_ROWS			0x8#define COLOR_COLS			0x10#define COLOR_PIXELRATIO		0x20#define COLOR_BITSALLOCATED		0x40#define COLOR_BITSSTORED		0x80#define COLOR_HIGHBIT			0x100#define COLOR_PIXELREPRESENTATION	0x200#define COLOR_PIXELDATA			0x400#define COLOR_NGETATTRIB	(COLOR_SAMPLESPERPIXE | \		COLOR_PHOTOMETRICINTERPRETATION | COLOR_PLANARCONFIGURATION| \		COLOR_ROWS | COLOR_COLS | COLOR_PIXELRATIO | \		COLOR_BITSALLOCATED | COLOR_BITSSTORED | COLOR_HIGHBIT | \		COLOR_PIXELREPRESENTATION | COLOR_PIXELDATA)/* data structure to store the image display format and the row/column   major order of images*/typedef struct {    char displayFormat[20];	/* stores the image display format e.g.				 * STANDARD */    int count;			/* stores total number of image boxes */    int *numList;}   IMG_DISPLAYFORMAT;/*	Data Structure to store the PRINT MANAGEMENT HIERARCHY	------------------------------------------------------*/typedef struct {    void *reserved[2];    char bibInstanceUID[DICOM_UI_LENGTH + 1];    DCM_OBJECT *bibAttrib;}   BIB_NODE;typedef struct {    void *reserved[2];    char babInstanceUID[DICOM_UI_LENGTH + 1];    DCM_OBJECT *babAttrib;}   BAB_NODE;typedef struct {    void *reserved[2];    char bfbInstanceUID[DICOM_UI_LENGTH + 1];    DCM_OBJECT *bfbAttrib;    LST_HEAD *bibList;    LST_HEAD *babList;}   BFB_NODE;typedef struct {    void *reserved[2];		/* For use by LST facility */    char bfsInstanceUID[DICOM_UI_LENGTH + 1];    DCM_OBJECT *bfsAttrib;    LST_HEAD *bfbList;}   BFS_NODE;/* Various status codes */#define BFSCREATESUCCESS		0x0000#define BFSMEMORYALLOCUNSUPPORTED	0xB600#ifdef  __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -