#include <stdlib.h>
#include <tiffio.h>
Go to the source code of this file.
Defines | |
#define | DT_U8 0x01 |
#define | DT_F32 0x02 |
Functions | |
float * | read_tiff_rgba_f32 (const char *fname, size_t *nx, size_t *ny) |
load the data from a TIFF image file as a float RGBA array | |
unsigned char * | read_tiff_rgba_u8 (const char *fname, size_t *nx, size_t *ny) |
load the data from a TIFF image file as a 8bit RGBA array | |
int | write_tiff_rgba_f32 (const char *fname, const float *data, size_t nx, size_t ny) |
save four contiguous float arrays into a TIFF file | |
int | write_tiff_rgba_u8 (const char *fname, const unsigned char *data, size_t nx, size_t ny) |
save four contiguous 8bit arrays into a TIFF file |
#define DT_U8 0x01 |
float* read_tiff_rgba_f32 | ( | const char * | fname, | |
size_t * | nx, | |||
size_t * | ny | |||
) |
load the data from a TIFF image file as a float RGBA array
The array is allocated in this function call. It hold the RGBA pixels as 4 contiguous arrays.
fname | the file name to read | |
nx,ny | storage space for the image size |
Definition at line 198 of file io_tiff.cpp.
unsigned char* read_tiff_rgba_u8 | ( | const char * | fname, | |
size_t * | nx, | |||
size_t * | ny | |||
) |
load the data from a TIFF image file as a 8bit RGBA array
The array is allocated in this function call. It hold the RGBA pixels as 4 contiguous arrays.
fname | the file name to read | |
nx,ny | storage space for the image size |
Definition at line 214 of file io_tiff.cpp.
int write_tiff_rgba_f32 | ( | const char * | fname, | |
const float * | data, | |||
size_t | nx, | |||
size_t | ny | |||
) |
save four contiguous float arrays into a TIFF file
fname | TIFF file name | |
data | input array of float values supposed in [0,255] | |
nx | ny array size |
Definition at line 388 of file io_tiff.cpp.
int write_tiff_rgba_u8 | ( | const char * | fname, | |
const unsigned char * | data, | |||
size_t | nx, | |||
size_t | ny | |||
) |
save four contiguous 8bit arrays into a TIFF file
fname | TIFF file name | |
data | input array of 8bit values | |
nx | ny array size |
Definition at line 403 of file io_tiff.cpp.