Medical Imaging Interaction Toolkit
2016.11.0
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 268 of file mitkIpPic.h.
#define _mitkIpPic_h |
Definition at line 222 of file mitkIpPic.h.
#define _mitkIpPicGET_PIXEL | ( | TYPE, | |
PIC, | |||
X, | |||
Y, | |||
RESULT | |||
) |
Definition at line 524 of file mitkIpPic.h.
#define _mitkIpPicGET_PIXEL_RGB | ( | TYPE, | |
PIC, | |||
X, | |||
Y, | |||
R, | |||
G, | |||
B | |||
) |
Definition at line 548 of file mitkIpPic.h.
#define _mitkIpPicHAS_CAN_READ_COMPRESSED |
Definition at line 819 of file mitkIpPic.h.
#define _mitkIpPicHAS_CAN_WRITE_COMPRESSED |
Definition at line 823 of file mitkIpPic.h.
#define _mitkIpPicInfoNORMAL |
Definition at line 886 of file mitkIpPic.h.
#define _mitkIpPicInfoSHORT |
Definition at line 887 of file mitkIpPic.h.
#define _mitkIpPicNDIM |
Definition at line 261 of file mitkIpPic.h.
#define _mitkIpPicPUT_PIXEL | ( | TYPE, | |
PIC, | |||
X, | |||
Y, | |||
VALUE | |||
) |
Definition at line 531 of file mitkIpPic.h.
#define _mitkIpPicPUT_PIXEL_RGB | ( | TYPE, | |
PIC, | |||
X, | |||
Y, | |||
R, | |||
G, | |||
B | |||
) |
Definition at line 557 of file mitkIpPic.h.
#define _mitkIpPicTAGLEN |
Definition at line 262 of file mitkIpPic.h.
#define mitkIpCpFromBE | ( | source, | |
destination, | |||
len, | |||
bytes | |||
) |
Definition at line 662 of file mitkIpPic.h.
#define mitkIpCpFromLE | ( | source, | |
destination, | |||
len, | |||
bytes | |||
) |
Definition at line 661 of file mitkIpPic.h.
#define mitkIpCpToBE | ( | source, | |
destination, | |||
len, | |||
bytes | |||
) |
Definition at line 670 of file mitkIpPic.h.
#define mitkIpCpToLE | ( | source, | |
destination, | |||
len, | |||
bytes | |||
) |
Definition at line 669 of file mitkIpPic.h.
#define mitkIpCvtFromBE | ( | data, | |
len, | |||
bytes | |||
) |
Definition at line 654 of file mitkIpPic.h.
#define mitkIpCvtFromLE | ( | data, | |
len, | |||
bytes | |||
) |
Definition at line 653 of file mitkIpPic.h.
#define mitkIpEndianSwap2 | ( | x | ) |
Definition at line 677 of file mitkIpPic.h.
#define mitkIpEndianSwap4 | ( | x | ) |
Definition at line 679 of file mitkIpPic.h.
#define mitkIpFloat4FromLE | ( | from, | |
to | |||
) |
Definition at line 693 of file mitkIpPic.h.
#define mitkIpFloat4ToLE | ( | from, | |
to | |||
) |
Definition at line 723 of file mitkIpPic.h.
#define mitkIpFloat8FromLE | ( | from, | |
to | |||
) |
Definition at line 694 of file mitkIpPic.h.
#define mitkIpFloat8ToLE | ( | from, | |
to | |||
) |
Definition at line 724 of file mitkIpPic.h.
#define mitkIpFReadBE |
Definition at line 630 of file mitkIpPic.h.
#define mitkIpFReadLE |
Definition at line 629 of file mitkIpPic.h.
#define mitkIpFWriteBE |
Definition at line 638 of file mitkIpPic.h.
#define mitkIpFWriteLE |
Definition at line 637 of file mitkIpPic.h.
#define mitkIpInt2FromLE | ( | from, | |
to | |||
) |
Definition at line 689 of file mitkIpPic.h.
#define mitkIpInt2ToLE | ( | from, | |
to | |||
) |
Definition at line 719 of file mitkIpPic.h.
#define mitkIpInt4FromLE | ( | from, | |
to | |||
) |
Definition at line 690 of file mitkIpPic.h.
#define mitkIpInt4ToLE | ( | from, | |
to | |||
) |
Definition at line 720 of file mitkIpPic.h.
#define mitkIpPicDEBUG |
Definition at line 226 of file mitkIpPic.h.
#define mitkIpPicDR | ( | type, | |
len | |||
) |
Definition at line 281 of file mitkIpPic.h.
#define mitkIpPicEncryptionType | ( | pic | ) |
Definition at line 275 of file mitkIpPic.h.
#define mitkIpPicFClose |
Definition at line 586 of file mitkIpPic.h.
#define mitkIpPicFEOF |
Definition at line 585 of file mitkIpPic.h.
#define mitkIpPicFile_t |
Definition at line 579 of file mitkIpPic.h.
#define mitkIpPicFOpen |
Definition at line 580 of file mitkIpPic.h.
#define mitkIpPicFOR_TYPE | ( | _ipPIC_TYPE, | |
_ipPIC_CMD, | |||
_ipPIC_PIC | |||
) |
Definition at line 283 of file mitkIpPic.h.
#define mitkIpPicFORALL | ( | _ipPIC_CMD, | |
_ipPIC_PIC | |||
) |
Definition at line 286 of file mitkIpPic.h.
#define mitkIpPicFORALL_1 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1 | |||
) |
Definition at line 320 of file mitkIpPic.h.
#define mitkIpPicFORALL_2 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1, | |||
A2 | |||
) |
Definition at line 354 of file mitkIpPic.h.
#define mitkIpPicFORALL_3 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1, | |||
A2, | |||
A3 | |||
) |
Definition at line 388 of file mitkIpPic.h.
#define mitkIpPicFORALL_4 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1, | |||
A2, | |||
A3, | |||
A4 | |||
) |
Definition at line 422 of file mitkIpPic.h.
#define mitkIpPicFORALL_5 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1, | |||
A2, | |||
A3, | |||
A4, | |||
A5 | |||
) |
Definition at line 456 of file mitkIpPic.h.
#define mitkIpPicFORALL_6 | ( | _ipPIC_CMD, | |
_ipPIC_PIC, | |||
A1, | |||
A2, | |||
A3, | |||
A4, | |||
A5, | |||
A6 | |||
) |
Definition at line 490 of file mitkIpPic.h.
#define mitkIpPicFRead | ( | buf, | |
bsize, | |||
count, | |||
file | |||
) |
Definition at line 583 of file mitkIpPic.h.
#define mitkIpPicFReadBE |
Definition at line 613 of file mitkIpPic.h.
#define mitkIpPicFReadLE |
Definition at line 612 of file mitkIpPic.h.
#define mitkIpPicFSeek |
Definition at line 582 of file mitkIpPic.h.
#define mitkIpPicFTell |
Definition at line 581 of file mitkIpPic.h.
#define mitkIpPicFWrite |
Definition at line 584 of file mitkIpPic.h.
#define mitkIpPicFWriteBE |
Definition at line 621 of file mitkIpPic.h.
#define mitkIpPicFWriteLE |
Definition at line 620 of file mitkIpPic.h.
#define mitkIpPicGET_PIXEL | ( | PIC, | |
X, | |||
Y, | |||
RESULT | |||
) |
Definition at line 538 of file mitkIpPic.h.
#define mitkIpPicGET_PIXEL_RGB | ( | PIC, | |
X, | |||
Y, | |||
R, | |||
G, | |||
B | |||
) |
Definition at line 566 of file mitkIpPic.h.
#define mitkIpPicPUT_PIXEL | ( | PIC, | |
X, | |||
Y, | |||
RESULT | |||
) |
Definition at line 543 of file mitkIpPic.h.
#define mitkIpPicPUT_PIXEL_RGB | ( | PIC, | |
X, | |||
Y, | |||
R, | |||
G, | |||
B | |||
) |
Definition at line 571 of file mitkIpPic.h.
#define mitkIpPicVERSION |
Definition at line 259 of file mitkIpPic.h.
#define mitkIpPicVERSIONe |
Definition at line 260 of file mitkIpPic.h.
#define mitkIpPicVersionMajor | ( | pic | ) |
Definition at line 272 of file mitkIpPic.h.
#define mitkIpPicVersionMinor | ( | pic | ) |
Definition at line 273 of file mitkIpPic.h.
#define mitkIpUInt2FromLE | ( | from, | |
to | |||
) |
Definition at line 691 of file mitkIpPic.h.
#define mitkIpUInt2ToLE | ( | from, | |
to | |||
) |
Definition at line 721 of file mitkIpPic.h.
#define mitkIpUInt4FromLE | ( | from, | |
to | |||
) |
Definition at line 692 of file mitkIpPic.h.
#define mitkIpUInt4ToLE | ( | from, | |
to | |||
) |
Definition at line 722 of file mitkIpPic.h.
#define USE_ITKZLIB |
Definition at line 219 of file mitkIpPic.h.
#define USE_ZLIB |
Definition at line 576 of file mitkIpPic.h.
typedef struct _mitkIpPicTagsElement_s _mitkIpPicTagsElement_t |
typedef struct mitkIpPicDescriptor mitkIpPicDescriptor |
typedef char mitkIpPicTag_t[32] |
Definition at line 731 of file mitkIpPic.h.
enum mitkIpPicType_t |
Enumerator | |
---|---|
mitkIpPicUnknown | |
mitkIpPicBool | |
mitkIpPicASCII | |
mitkIpPicInt | |
mitkIpPicUInt | |
mitkIpPicFloat | |
mitkIpPicNonUniform | |
mitkIpPicTSV | |
_mitkIpPicTypeMax |
Definition at line 733 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 |