io_tiff.h File Reference

#include <stdlib.h>
#include <tiffio.h>
Include dependency graph for io_tiff.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define DT_F32   0x02

internal data type shortcut for float

Definition at line 41 of file io_tiff.h.

#define DT_U8   0x01

internal data type shortcut for unsigned char

Definition at line 39 of file io_tiff.h.


Function Documentation

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.

Parameters:
fname the file name to read
nx,ny storage space for the image size
Returns:
the data array pointer, NULL if an error occured

Definition at line 198 of file io_tiff.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
fname the file name to read
nx,ny storage space for the image size
Returns:
the data array pointer, NULL if an error occured

Definition at line 214 of file io_tiff.cpp.

Here is the call graph for this function:

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

Parameters:
fname TIFF file name
data input array of float values supposed in [0,255]
nx ny array size
Returns:
0 if OK, != 0 if an error occured

Definition at line 388 of file io_tiff.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters:
fname TIFF file name
data input array of 8bit values
nx ny array size
Returns:
0 if OK, != 0 if an error occured

Definition at line 403 of file io_tiff.cpp.

Here is the call graph for this function:

 All Files Functions Defines

Generated on Fri May 27 09:39:39 2011 for self similarity driven demosaicking by  doxygen 1.6.1