Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
Classes | Macros
igtl_image.h File Reference
#include "igtl_win32header.h"
#include "igtl_util.h"
#include "igtl_types.h"
Include dependency graph for igtl_image.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  igtl_image_header
 

Macros

#define IGTL_IMAGE_COORD_LPS   2
 
#define IGTL_IMAGE_COORD_RAS   1
 
#define IGTL_IMAGE_DTYPE_SCALAR   1
 
#define IGTL_IMAGE_DTYPE_VECTOR   3
 
#define IGTL_IMAGE_ENDIAN_BIG   1
 
#define IGTL_IMAGE_ENDIAN_LITTLE   2
 
#define IGTL_IMAGE_HEADER_SIZE   72
 
#define IGTL_IMAGE_HEADER_VERSION   1
 
#define IGTL_IMAGE_STYPE_TYPE_FLOAT32   10
 
#define IGTL_IMAGE_STYPE_TYPE_FLOAT64   11
 
#define IGTL_IMAGE_STYPE_TYPE_INT16   4
 
#define IGTL_IMAGE_STYPE_TYPE_INT32   6
 
#define IGTL_IMAGE_STYPE_TYPE_INT8   2
 
#define IGTL_IMAGE_STYPE_TYPE_UINT16   5
 
#define IGTL_IMAGE_STYPE_TYPE_UINT32   7
 
#define IGTL_IMAGE_STYPE_TYPE_UINT8   3
 

Functions

igtl_uint64 igtl_export igtl_image_get_data_size (igtl_image_header *header)
 
void igtl_export igtl_image_set_matrix (float spacing[3], float origin[3], float norm_i[3], float norm_j[3], float norm_k[3], igtl_image_header *header)
 
void igtl_export igtl_image_get_matrix (float spacing[3], float origin[3], float norm_i[3], float norm_j[3], float norm_k[3], igtl_image_header *header)
 
void igtl_export igtl_image_convert_byte_order (igtl_image_header *header)
 
igtl_uint64 igtl_export igtl_image_get_crc (igtl_image_header *header, void *image)
 

Macro Definition Documentation

#define IGTL_IMAGE_COORD_LPS   2

Definition at line 46 of file igtl_image.h.

#define IGTL_IMAGE_COORD_RAS   1

Definition at line 45 of file igtl_image.h.

#define IGTL_IMAGE_DTYPE_SCALAR   1

Definition at line 27 of file igtl_image.h.

#define IGTL_IMAGE_DTYPE_VECTOR   3

Definition at line 28 of file igtl_image.h.

#define IGTL_IMAGE_ENDIAN_BIG   1

Definition at line 41 of file igtl_image.h.

#define IGTL_IMAGE_ENDIAN_LITTLE   2

Definition at line 42 of file igtl_image.h.

#define IGTL_IMAGE_HEADER_SIZE   72

Definition at line 24 of file igtl_image.h.

#define IGTL_IMAGE_HEADER_VERSION   1

Definition at line 23 of file igtl_image.h.

#define IGTL_IMAGE_STYPE_TYPE_FLOAT32   10

Definition at line 37 of file igtl_image.h.

#define IGTL_IMAGE_STYPE_TYPE_FLOAT64   11

Definition at line 38 of file igtl_image.h.

#define IGTL_IMAGE_STYPE_TYPE_INT16   4

Definition at line 33 of file igtl_image.h.

#define IGTL_IMAGE_STYPE_TYPE_INT32   6

Definition at line 35 of file igtl_image.h.

#define IGTL_IMAGE_STYPE_TYPE_INT8   2

Definition at line 31 of file igtl_image.h.

#define IGTL_IMAGE_STYPE_TYPE_UINT16   5

Definition at line 34 of file igtl_image.h.

#define IGTL_IMAGE_STYPE_TYPE_UINT32   7

Definition at line 36 of file igtl_image.h.

#define IGTL_IMAGE_STYPE_TYPE_UINT8   3

Definition at line 32 of file igtl_image.h.

Function Documentation

void igtl_export igtl_image_convert_byte_order ( igtl_image_header header)

Converts endianness of each member variable in igtl_image_header from host byte order to network byte order, or vice versa.

igtl_uint64 igtl_export igtl_image_get_crc ( igtl_image_header header,
void *  image 
)

Calculates CRC of image data body including header and array of pixel data.

igtl_uint64 igtl_export igtl_image_get_data_size ( igtl_image_header header)

Calculates size of the pixel array, which will be transferred with the specified header.

void igtl_export igtl_image_get_matrix ( float  spacing[3],
float  origin[3],
float  norm_i[3],
float  norm_j[3],
float  norm_k[3],
igtl_image_header header 
)

Calculates size of the pixel array, which will be transferred with the specified header.

void igtl_export igtl_image_set_matrix ( float  spacing[3],
float  origin[3],
float  norm_i[3],
float  norm_j[3],
float  norm_k[3],
igtl_image_header header 
)

Generates image orientation/origin matrix from spacing, origin and normal vectors.


Generated at Mon Nov 11 2013 00:36:46 for OpenIGTLink by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2012