mcm/io_tiff_routine.h File Reference

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

Detailed Description

List of links of external functions used in FDS_MCM.c.

Definition in file io_tiff_routine.h.


Function Documentation

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.

Parameters:
[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
Returns:
the data array pointer, NULL if an error occured

Definition at line 157 of file io_tiff_all.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
[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
Returns:
the data array pointer, NULL if an error occured

Definition at line 201 of file io_tiff_all.c.

Here is the call graph for this function:

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

Parameters:
[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
Returns:
$ 0 $ if OK, $\neq 0 $ if an error occured

Definition at line 351 of file io_tiff_all.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
[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
Returns:
$ 0 $ if OK, $\neq 0 $ if an error occured

Definition at line 395 of file io_tiff_all.c.

Here is the call graph for this function:

Generated on Thu Sep 1 15:24:08 2011 for fds_mcm by  doxygen 1.6.3