Go to the source code of this file.
|
|
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) |
|
#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 |
Converts endianness of each member variable in igtl_image_header from host byte order to network byte order, or vice versa.
Calculates CRC of image data body including header and array of pixel data.
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.