int Read_TIFF_ToGevImage

(char *filename, uint32_t *width, uint32_t *height,
 int pixel_format, int size, void *imageData);

Description

Reads a TIFF image from file and converts it to a GevImage. Note, reading 10/12/14/16-bit formats into 8-bit formats is not supported.

Parameters

*filename

Name of TIFF file

*width

Pointer to memory to hold width, in pixels, of TIFF file image to read

*height

Pointer to memory to hold height, in pixels, of TIFF file image to read

pixel_format

Output image pixel format

size

Size of buffer to hold image read, in bytes

*imageData

Pointer to memory to hold output GevImage

Return Value

int

Returns non-zero value on success. Possible error values include:

GEVLIB_ERRPR_NULL_PTR: Data pointer is NULL.
GEVLIB_ERROR_INVALID_PIXEL_FORMAT: The specified pixel format is not supported.

Related Topics

Appendix B: Helper Functions