List of links of external functions used in FDS_MCM.c. More...
Go to the source code of this file.
Functions | |
float * | read_tiff_f32 (const char *fname, size_t *nx, size_t *ny, size_t *nc) |
load the data from a TIFF image file as a float RGB or grayscale array | |
unsigned char * | read_tiff_u8 (const char *fname, size_t *nx, size_t *ny, size_t *nc) |
load the data from a TIFF image file as a 8bit RGB or grayscale array | |
int | write_tiff_f32 (const char *fname, const float *data, size_t nx, size_t ny, size_t nc) |
save one or three contiguous float arrays into a TIFF file | |
int | write_tiff_u8 (const char *fname, const unsigned char *data, size_t nx, size_t ny, size_t nc) |
save one or three unsigned char arrays into a TIFF file |
List of links of external functions used in FDS_MCM.c.
Definition in file io_tiff_routine.h.
float* read_tiff_f32 | ( | const char * | fname, | |
size_t * | nx, | |||
size_t * | ny, | |||
size_t * | nc | |||
) |
load the data from a TIFF image file as a float RGB or grayscale array
The array is allocated in this function call. It holds the RGB pixels as 3 contiguous arrays.
[in] | fname | the file name to read |
[in] | nx | memory space for the image width |
[in] | ny | memory space for the image height |
[in] | nc | memory space for number of channels |
Definition at line 157 of file io_tiff_all.c.
unsigned char* read_tiff_u8 | ( | const char * | fname, | |
size_t * | nx, | |||
size_t * | ny, | |||
size_t * | nc | |||
) |
load the data from a TIFF image file as a 8bit RGB or grayscale array
The array is allocated in this function call. It hold the RGB pixels as 3 contiguous arrays.
[in] | fname | the file name to read |
[in] | nx | memory space for the image width |
[in] | ny | memory space for the image height |
[in] | nc | memory space for number of channels |
Definition at line 201 of file io_tiff_all.c.
int write_tiff_f32 | ( | const char * | fname, | |
const float * | data, | |||
size_t | nx, | |||
size_t | ny, | |||
size_t | nc | |||
) |
save one or three contiguous float arrays into a TIFF file
[in] | fname | TIFF file name |
[in] | data | input array of float values supposed in [0,255] 1 or 3 contiguous color channels arrays |
[in] | nx | memory space for the image width |
[in] | ny | memory space for the image height |
[in] | nc | memory space for number of channels |
Definition at line 351 of file io_tiff_all.c.
int write_tiff_u8 | ( | const char * | fname, | |
const unsigned char * | data, | |||
size_t | nx, | |||
size_t | ny, | |||
size_t | nc | |||
) |
save one or three unsigned char arrays into a TIFF file
Note: the conversion here is useless, but kept for code symmetry.
[in] | fname | TIFF file name |
[in] | data | input array of unsigned char values, 1 or 3 contiguous color channels arrays |
[in] | nx | memory space for the image width |
[in] | ny | memory space for the image height |
[in] | nc | memory space for number of channels |
Definition at line 395 of file io_tiff_all.c.