Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <mitkIpTypes.h>
#include "itk_zlib.h"
Go to the source code of this file.
Classes | |
struct | mitkIpPicTSV_t |
struct | _mitkIpPicTagsElement_s |
struct | _mitkIpPicInfo_t |
struct | mitkIpPicDescriptor |
Macros | |
#define | USE_ITKZLIB |
#define | _mitkIpPic_h |
#define | mitkIpPicDEBUG |
#define | mitkIpPicVERSION |
#define | mitkIpPicVERSIONe |
#define | _mitkIpPicNDIM |
#define | _mitkIpPicTAGLEN |
#define | _mitkIpENDIAN_IS_LITTLE |
#define | mitkIpPicVersionMajor(pic) |
#define | mitkIpPicVersionMinor(pic) |
#define | mitkIpPicEncryptionType(pic) |
#define | mitkIpPicDR(type, len) |
#define | mitkIpPicFOR_TYPE(_ipPIC_TYPE, _ipPIC_CMD, _ipPIC_PIC) |
#define | mitkIpPicFORALL(_ipPIC_CMD, _ipPIC_PIC) |
#define | mitkIpPicFORALL_1(_ipPIC_CMD, _ipPIC_PIC, A1) |
#define | mitkIpPicFORALL_2(_ipPIC_CMD, _ipPIC_PIC, A1, A2) |
#define | mitkIpPicFORALL_3(_ipPIC_CMD, _ipPIC_PIC, A1, A2, A3) |
#define | mitkIpPicFORALL_4(_ipPIC_CMD, _ipPIC_PIC, A1, A2, A3, A4) |
#define | mitkIpPicFORALL_5(_ipPIC_CMD, _ipPIC_PIC, A1, A2, A3, A4, A5) |
#define | mitkIpPicFORALL_6(_ipPIC_CMD, _ipPIC_PIC, A1, A2, A3, A4, A5, A6) |
#define | _mitkIpPicGET_PIXEL(TYPE, PIC, X, Y, RESULT) |
#define | _mitkIpPicPUT_PIXEL(TYPE, PIC, X, Y, VALUE) |
#define | mitkIpPicGET_PIXEL(PIC, X, Y, RESULT) |
#define | mitkIpPicPUT_PIXEL(PIC, X, Y, RESULT) |
#define | _mitkIpPicGET_PIXEL_RGB(TYPE, PIC, X, Y, R, G, B) |
#define | _mitkIpPicPUT_PIXEL_RGB(TYPE, PIC, X, Y, R, G, B) |
#define | mitkIpPicGET_PIXEL_RGB(PIC, X, Y, R, G, B) |
#define | mitkIpPicPUT_PIXEL_RGB(PIC, X, Y, R, G, B) |
#define | USE_ZLIB |
#define | mitkIpPicFile_t |
#define | mitkIpPicFOpen |
#define | mitkIpPicFTell |
#define | mitkIpPicFSeek |
#define | mitkIpPicFRead(buf, bsize, count, file) |
#define | mitkIpPicFWrite |
#define | mitkIpPicFEOF |
#define | mitkIpPicFClose |
#define | mitkIpPicFReadLE |
#define | mitkIpPicFReadBE |
#define | mitkIpPicFWriteLE |
#define | mitkIpPicFWriteBE |
#define | mitkIpFReadLE |
#define | mitkIpFReadBE |
#define | mitkIpFWriteLE |
#define | mitkIpFWriteBE |
#define | mitkIpCvtFromLE(data, len, bytes) |
#define | mitkIpCvtFromBE(data, len, bytes) |
#define | mitkIpCpFromLE(source, destination, len, bytes) |
#define | mitkIpCpFromBE(source, destination, len, bytes) |
#define | mitkIpCpToLE(source, destination, len, bytes) |
#define | mitkIpCpToBE(source, destination, len, bytes) |
#define | mitkIpEndianSwap2(x) |
#define | mitkIpEndianSwap4(x) |
#define | mitkIpInt2FromLE(from, to) |
#define | mitkIpInt4FromLE(from, to) |
#define | mitkIpUInt2FromLE(from, to) |
#define | mitkIpUInt4FromLE(from, to) |
#define | mitkIpFloat4FromLE(from, to) |
#define | mitkIpFloat8FromLE(from, to) |
#define | mitkIpInt2ToLE(from, to) |
#define | mitkIpInt4ToLE(from, to) |
#define | mitkIpUInt2ToLE(from, to) |
#define | mitkIpUInt4ToLE(from, to) |
#define | mitkIpFloat4ToLE(from, to) |
#define | mitkIpFloat8ToLE(from, to) |
#define | _mitkIpPicHAS_CAN_READ_COMPRESSED |
#define | _mitkIpPicHAS_CAN_WRITE_COMPRESSED |
#define | _mitkIpPicInfoNORMAL |
#define | _mitkIpPicInfoSHORT |
Typedefs | |
typedef char | mitkIpPicTag_t[32] |
typedef struct _mitkIpPicTagsElement_s | _mitkIpPicTagsElement_t |
typedef struct mitkIpPicDescriptor | mitkIpPicDescriptor |
Enumerations | |
enum | mitkIpPicType_t { mitkIpPicUnknown, mitkIpPicBool, mitkIpPicASCII, mitkIpPicInt, mitkIpPicUInt, mitkIpPicFloat, mitkIpPicNonUniform, mitkIpPicTSV, _mitkIpPicTypeMax } |
Variables | |
mitkIpBool_t | _mitkIpPicCanReadCompressed |
mitkIpBool_t | _mitkIpPicCanWriteCompressed |
#define _mitkIpENDIAN_IS_LITTLE |
Definition at line 262 of file mitkIpPic.h.
#define _mitkIpPic_h |
Definition at line 216 of file mitkIpPic.h.
#define _mitkIpPicGET_PIXEL | ( | TYPE, | |
PIC, | |||
X, | |||
Y, | |||
RESULT | |||
) |
Definition at line 518 of file mitkIpPic.h.
#define _mitkIpPicGET_PIXEL_RGB | ( | TYPE, | |
PIC, | |||
X, | |||
Y, | |||
R, | |||
G, | |||
B | |||
) |
Definition at line 542 of file mitkIpPic.h.
#define _mitkIpPicHAS_CAN_READ_COMPRESSED |
Definition at line 813 of file mitkIpPic.h.
#define _mitkIpPicHAS_CAN_WRITE_COMPRESSED |
Definition at line 817 of file mitkIpPic.h.
#define _mitkIpPicInfoNORMAL |
Definition at line 880 of file mitkIpPic.h.
#define _mitkIpPicInfoSHORT |
Definition at line 881 of file mitkIpPic.h.
#define _mitkIpPicNDIM |
Definition at line 255 of file mitkIpPic.h.
#define _mitkIpPicPUT_PIXEL | ( | TYPE, | |
PIC, | |||
X, | |||
Y, | |||
VALUE | |||
) |
Definition at line 525 of file mitkIpPic.h.
#define _mitkIpPicPUT_PIXEL_RGB | ( | TYPE, | |
PIC, | |||
X, | |||
Y, | |||
R, | |||
G, | |||
B | |||
) |
Definition at line 551 of file mitkIpPic.h.
#define _mitkIpPicTAGLEN |
Definition at line 256 of file mitkIpPic.h.
#define mitkIpCpFromBE | ( | source, | |
destination, | |||
len, | |||
bytes | |||
) |
Definition at line 656 of file mitkIpPic.h.
#define mitkIpCpFromLE | ( | source, | |
destination, | |||
len, | |||
bytes | |||
) |
Definition at line 655 of file mitkIpPic.h.
#define mitkIpCpToBE | ( | source, | |
destination, | |||
len, | |||
bytes | |||
) |
Definition at line 664 of file mitkIpPic.h.
#define mitkIpCpToLE | ( | source, | |
destination, | |||
len, | |||
bytes | |||
) |
Definition at line 663 of file mitkIpPic.h.
#define mitkIpCvtFromBE | ( | data, | |
len, | |||
bytes | |||
) |
Definition at line 648 of file mitkIpPic.h.
#define mitkIpCvtFromLE | ( | data, | |
len, | |||
bytes | |||
) |
Definition at line 647 of file mitkIpPic.h.
#define mitkIpEndianSwap2 | ( | x | ) |
Definition at line 671 of file mitkIpPic.h.
#define mitkIpEndianSwap4 | ( | x | ) |
Definition at line 673 of file mitkIpPic.h.
#define mitkIpFloat4FromLE | ( | from, | |
to | |||
) |
Definition at line 687 of file mitkIpPic.h.
#define mitkIpFloat4ToLE | ( | from, | |
to | |||
) |
Definition at line 717 of file mitkIpPic.h.
#define mitkIpFloat8FromLE | ( | from, | |
to | |||
) |
Definition at line 688 of file mitkIpPic.h.
#define mitkIpFloat8ToLE | ( | from, | |
to | |||
) |
Definition at line 718 of file mitkIpPic.h.
#define mitkIpFReadBE |
Definition at line 624 of file mitkIpPic.h.
#define mitkIpFReadLE |
Definition at line 623 of file mitkIpPic.h.
#define mitkIpFWriteBE |
Definition at line 632 of file mitkIpPic.h.
#define mitkIpFWriteLE |
Definition at line 631 of file mitkIpPic.h.
#define mitkIpInt2FromLE | ( | from, | |
to | |||
) |
Definition at line 683 of file mitkIpPic.h.
#define mitkIpInt2ToLE | ( | from, | |
to | |||
) |
Definition at line 713 of file mitkIpPic.h.
#define mitkIpInt4FromLE | ( | from, | |
to | |||
) |
Definition at line 684 of file mitkIpPic.h.
#define mitkIpInt4ToLE | ( | from, | |
to | |||
) |
Definition at line 714 of file mitkIpPic.h.
#define mitkIpPicDEBUG |
Definition at line 220 of file mitkIpPic.h.
#define mitkIpPicDR | ( | type, | |
len | |||
) |
Definition at line 275 of file mitkIpPic.h.
#define mitkIpPicEncryptionType | ( | pic | ) |
Definition at line 269 of file mitkIpPic.h.
#define mitkIpPicFClose |
Definition at line 580 of file mitkIpPic.h.
#define mitkIpPicFEOF |
Definition at line 579 of file mitkIpPic.h.
#define mitkIpPicFile_t |
Definition at line 573 of file mitkIpPic.h.
#define mitkIpPicFOpen |
Definition at line 574 of file mitkIpPic.h.
#define mitkIpPicFOR_TYPE | ( | _ipPIC_TYPE, | |
_ipPIC_CMD, | |||
_ipPIC_PIC | |||
) |
Definition at line 277 of file mitkIpPic.h.
#define mitkIpPicFORALL | ( | _ipPIC_CMD, | |
_ipPIC_PIC | |||
) |
Definition at line 280 of file mitkIpPic.h.
#define mitkIpPicFORALL_1 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1 | |||
) |
Definition at line 314 of file mitkIpPic.h.
#define mitkIpPicFORALL_2 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1, | |||
A2 | |||
) |
Definition at line 348 of file mitkIpPic.h.
#define mitkIpPicFORALL_3 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1, | |||
A2, | |||
A3 | |||
) |
Definition at line 382 of file mitkIpPic.h.
#define mitkIpPicFORALL_4 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1, | |||
A2, | |||
A3, | |||
A4 | |||
) |
Definition at line 416 of file mitkIpPic.h.
#define mitkIpPicFORALL_5 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1, | |||
A2, | |||
A3, | |||
A4, | |||
A5 | |||
) |
Definition at line 450 of file mitkIpPic.h.
#define mitkIpPicFORALL_6 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1, | |||
A2, | |||
A3, | |||
A4, | |||
A5, | |||
A6 | |||
) |
Definition at line 484 of file mitkIpPic.h.
#define mitkIpPicFRead | ( | buf, | |
bsize, | |||
count, | |||
file | |||
) |
Definition at line 577 of file mitkIpPic.h.
#define mitkIpPicFReadBE |
Definition at line 607 of file mitkIpPic.h.
#define mitkIpPicFReadLE |
Definition at line 606 of file mitkIpPic.h.
#define mitkIpPicFSeek |
Definition at line 576 of file mitkIpPic.h.
#define mitkIpPicFTell |
Definition at line 575 of file mitkIpPic.h.
#define mitkIpPicFWrite |
Definition at line 578 of file mitkIpPic.h.
#define mitkIpPicFWriteBE |
Definition at line 615 of file mitkIpPic.h.
#define mitkIpPicFWriteLE |
Definition at line 614 of file mitkIpPic.h.
#define mitkIpPicGET_PIXEL | ( | PIC, | |
X, | |||
Y, | |||
RESULT | |||
) |
Definition at line 532 of file mitkIpPic.h.
#define mitkIpPicGET_PIXEL_RGB | ( | PIC, | |
X, | |||
Y, | |||
R, | |||
G, | |||
B | |||
) |
Definition at line 560 of file mitkIpPic.h.
#define mitkIpPicPUT_PIXEL | ( | PIC, | |
X, | |||
Y, | |||
RESULT | |||
) |
Definition at line 537 of file mitkIpPic.h.
#define mitkIpPicPUT_PIXEL_RGB | ( | PIC, | |
X, | |||
Y, | |||
R, | |||
G, | |||
B | |||
) |
Definition at line 565 of file mitkIpPic.h.
#define mitkIpPicVERSION |
Definition at line 253 of file mitkIpPic.h.
#define mitkIpPicVERSIONe |
Definition at line 254 of file mitkIpPic.h.
#define mitkIpPicVersionMajor | ( | pic | ) |
Definition at line 266 of file mitkIpPic.h.
#define mitkIpPicVersionMinor | ( | pic | ) |
Definition at line 267 of file mitkIpPic.h.
#define mitkIpUInt2FromLE | ( | from, | |
to | |||
) |
Definition at line 685 of file mitkIpPic.h.
#define mitkIpUInt2ToLE | ( | from, | |
to | |||
) |
Definition at line 715 of file mitkIpPic.h.
#define mitkIpUInt4FromLE | ( | from, | |
to | |||
) |
Definition at line 686 of file mitkIpPic.h.
#define mitkIpUInt4ToLE | ( | from, | |
to | |||
) |
Definition at line 716 of file mitkIpPic.h.
#define USE_ITKZLIB |
Definition at line 213 of file mitkIpPic.h.
#define USE_ZLIB |
Definition at line 570 of file mitkIpPic.h.
typedef struct _mitkIpPicTagsElement_s _mitkIpPicTagsElement_t |
typedef struct mitkIpPicDescriptor mitkIpPicDescriptor |
typedef char mitkIpPicTag_t[32] |
Definition at line 725 of file mitkIpPic.h.
enum mitkIpPicType_t |
Enumerator | |
---|---|
mitkIpPicUnknown | |
mitkIpPicBool | |
mitkIpPicASCII | |
mitkIpPicInt | |
mitkIpPicUInt | |
mitkIpPicFloat | |
mitkIpPicNonUniform | |
mitkIpPicTSV | |
_mitkIpPicTypeMax |
Definition at line 727 of file mitkIpPic.h.
void _mitkIpCp | ( | void * | source, |
void * | destination, | ||
unsigned long int | len | ||
) |
void _mitkIpCpCvtEndian | ( | void * | source, |
void * | destination, | ||
unsigned long int | len, | ||
unsigned char | bytes | ||
) |
void _mitkIpCvtEndian | ( | void * | data, |
unsigned long int | len, | ||
unsigned char | bytes | ||
) |
_mitkIpEndian_t _mitkIpEndian | ( | void | ) |
vcl_size_t _mitkIpFWrite | ( | void * | ptr, |
vcl_size_t | size, | ||
vcl_size_t | nitems, | ||
FILE * | stream | ||
) |
mitkIpPicTSV_t* _mitkIpPicCloneTag | ( | mitkIpPicTSV_t * | source | ) |
_mitkIpPicTagsElement_t* _mitkIpPicCloneTags | ( | _mitkIpPicTagsElement_t * | head | ) |
mitkIpPicDescriptor* _mitkIpPicCopySlice | ( | mitkIpPicDescriptor * | pic, |
mitkIpPicDescriptor * | pic_in, | ||
mitkIpUInt4_t | slice | ||
) |
mitkIpUInt4_t _mitkIpPicElements | ( | mitkIpPicDescriptor * | pic | ) |
_mitkIpPicTagsElement_t* _mitkIpPicFindTag | ( | _mitkIpPicTagsElement_t * | head, |
const char * | tag | ||
) |
void _mitkIpPicFreeTags | ( | _mitkIpPicTagsElement_t * | head | ) |
void _mitkIpPicInfo | ( | FILE * | stream, |
mitkIpPicDescriptor * | pic, | ||
mitkIpUInt4_t | flags | ||
) |
void _mitkIpPicInfoPrintTags | ( | FILE * | stream, |
_mitkIpPicTagsElement_t * | head, | ||
mitkIpUInt4_t | level, | ||
mitkIpUInt4_t | flags | ||
) |
_mitkIpPicTagsElement_t* _mitkIpPicInsertTag | ( | _mitkIpPicTagsElement_t * | head, |
mitkIpPicTSV_t * | tsv | ||
) |
mitkIpPicDescriptor* _mitkIpPicOldGet | ( | FILE * | infile, |
mitkIpPicDescriptor * | pic | ||
) |
mitkIpPicDescriptor* _mitkIpPicOldGetHeader | ( | FILE * | infile, |
mitkIpPicDescriptor * | pic | ||
) |
mitkIpPicDescriptor* _mitkIpPicOldGetSlice | ( | FILE * | infile, |
mitkIpPicDescriptor * | pic, | ||
mitkIpUInt4_t | slice | ||
) |
gzFile _mitkIpPicOpenPicFileIn | ( | const char * | path | ) |
_mitkIpPicTagsElement_t* _mitkIpPicReadTags | ( | _mitkIpPicTagsElement_t * | head, |
mitkIpUInt4_t | bytes_to_read, | ||
FILE * | stream, | ||
char | encryption_type | ||
) |
_mitkIpPicTagsElement_t* _mitkIpPicReadTagsMem | ( | _mitkIpPicTagsElement_t * | head, |
mitkIpUInt4_t | bytes_to_read, | ||
mitkIpUInt1_t ** | mem_ptr, | ||
char | encryption_type | ||
) |
mitkIpUInt4_t _mitkIpPicSize | ( | mitkIpPicDescriptor * | pic | ) |
mitkIpUInt4_t _mitkIpPicTagsNumber | ( | _mitkIpPicTagsElement_t * | head | ) |
mitkIpUInt4_t _mitkIpPicTagsSize | ( | _mitkIpPicTagsElement_t * | head | ) |
mitkIpUInt4_t _mitkIpPicTSVElements | ( | mitkIpPicTSV_t * | tsv | ) |
mitkIpUInt4_t _mitkIpPicTSVSize | ( | mitkIpPicTSV_t * | tsv | ) |
void _mitkIpPicWriteTags | ( | _mitkIpPicTagsElement_t * | head, |
FILE * | stream, | ||
char | encryption_type | ||
) |
void _mitkIpPicWriteTagsMem | ( | _mitkIpPicTagsElement_t * | head, |
mitkIpUInt1_t ** | mem_ptr | ||
) |
vcl_size_t mitkIpFReadCvt | ( | void * | ptr, |
vcl_size_t | size, | ||
vcl_size_t | nitems, | ||
FILE * | stream | ||
) |
int mitkIpPicAccess | ( | const char * | path, |
int | mode | ||
) |
void mitkIpPicAddSubTag | ( | mitkIpPicTSV_t * | parent, |
mitkIpPicTSV_t * | tsv | ||
) |
void mitkIpPicAddTag | ( | mitkIpPicDescriptor * | pic, |
mitkIpPicTSV_t * | tsv | ||
) |
void mitkIpPicClear | ( | mitkIpPicDescriptor * | pic | ) |
mitkIpPicDescriptor* mitkIpPicClone | ( | mitkIpPicDescriptor * | pic | ) |
mitkIpPicDescriptor* mitkIpPicCopyHeader | ( | mitkIpPicDescriptor * | pic, |
mitkIpPicDescriptor * | pic_new | ||
) |
mitkIpPicTSV_t* mitkIpPicDelSubTag | ( | mitkIpPicTSV_t * | parent, |
const char * | tag | ||
) |
mitkIpPicTSV_t* mitkIpPicDelTag | ( | mitkIpPicDescriptor * | pic, |
const char * | tag | ||
) |
vcl_size_t mitkIpPicFReadCvt | ( | void * | ptr, |
vcl_size_t | size, | ||
vcl_size_t | nitems, | ||
gzFile | stream | ||
) |
void mitkIpPicFree | ( | mitkIpPicDescriptor * | pic | ) |
void mitkIpPicFreeTag | ( | mitkIpPicTSV_t * | tsv | ) |
vcl_size_t mitkIpPicFWriteCvt | ( | void * | ptr, |
vcl_size_t | size, | ||
vcl_size_t | nitems, | ||
gzFile | stream | ||
) |
mitkIpPicDescriptor* mitkIpPicGet | ( | const char * | picfile_name, |
mitkIpPicDescriptor * | pic | ||
) |
mitkIpPicDescriptor* mitkIpPicGetHeader | ( | const char * | picfile_name, |
mitkIpPicDescriptor * | pic | ||
) |
Referenced by mitkVtkPropRendererTest().
mitkIpPicDescriptor* mitkIpPicGetMem | ( | mitkIpUInt1_t * | mem_pic | ) |
mitkIpPicDescriptor* mitkIpPicGetSlice | ( | const char * | picfile_name, |
mitkIpPicDescriptor * | pic, | ||
mitkIpUInt4_t | slice | ||
) |
mitkIpPicDescriptor* mitkIpPicGetTags | ( | const char * | picfile_name, |
mitkIpPicDescriptor * | pic | ||
) |
Referenced by mitkVtkPropRendererTest().
mitkIpBool_t mitkIpPicGetWriteCompression | ( | void | ) |
mitkIpPicDescriptor* mitkIpPicNew | ( | void | ) |
int mitkIpPicPut | ( | const char * | picfile_name, |
mitkIpPicDescriptor * | pic | ||
) |
mitkIpUInt1_t* mitkIpPicPutMem | ( | mitkIpPicDescriptor * | pic, |
int * | mem_size | ||
) |
void mitkIpPicPutSlice | ( | const char * | picfile_name, |
mitkIpPicDescriptor * | pic, | ||
mitkIpUInt4_t | slice | ||
) |
mitkIpPicTSV_t* mitkIpPicQuerySubTag | ( | mitkIpPicTSV_t * | parent, |
const char * | t | ||
) |
mitkIpPicTSV_t* mitkIpPicQueryTag | ( | mitkIpPicDescriptor * | pic, |
const char * | t | ||
) |
int mitkIpPicRemoveFile | ( | const char * | path | ) |
mitkIpBool_t mitkIpPicSetWriteCompression | ( | mitkIpBool_t | compression | ) |
const char* mitkIpPicTypeName | ( | mitkIpUInt4_t | type | ) |
mitkIpBool_t _mitkIpPicCanReadCompressed |
mitkIpBool_t _mitkIpPicCanWriteCompressed |