Fulguro Logo Support This Project

Input/Ouput
[Image manipulation]


Detailed Description

Functions to read or write images


Functions

FLGR_Data2Dflgr2d_load_bmp (char *filename)
FLGR_Data2Dflgr2d_load_jpeg (char *filename)
FLGR_Data2Dflgr2d_load_pgm (char *filename)
FLGR_Data2Dflgr2d_load_png (char *filename)
FLGR_Data2Dflgr2d_load_raw_desc (FILE *f, int byte_offset, int size_y, int size_x, int spp, FLGR_Type type)
FLGR_Data2Dflgr2d_load_raw_file (char *filename, int byte_offset, int size_y, int size_x, int spp, FLGR_Type type)
FLGR_Data2Dflgr2d_load_text_desc (FILE *f, int size_y, int size_x, int spp, FLGR_Type type)
FLGR_Data2Dflgr2d_load_text_file (char *filename, int size_y, int size_x, int spp, FLGR_Type type)
FLGR_Data2Dflgr2d_load_tiff (char *filename)
char * flgr2d_load_tiff_info (char *filename)
FLGR_Ret flgr2d_save_jpeg (FLGR_Data2D *img, char *filename, int quality)
FLGR_Ret flgr2d_save_pgm (FLGR_Data2D *img, char *filename, int format)
FLGR_Ret flgr2d_save_png (FLGR_Data2D *img, char *filename)
FLGR_Ret flgr2d_save_raw_desc (FLGR_Data2D *dat, FILE *f)
FLGR_Ret flgr2d_save_text_desc (FLGR_Data2D *img, FILE *f)
FLGR_Ret flgr2d_save_tiff (FLGR_Data2D *img, char *filename, int quality)
char * flgr_get_supported_image_format (void)


Function Documentation

FLGR_Data2D* flgr2d_load_bmp ( char *  filename  ) 

Load a BMP Image File

Parameters:
filename : String for bmp file name
Returns:
a pointer to FLGR_Data2D

Definition at line 1651 of file flgrImageIO.c.

FLGR_Data2D* flgr2d_load_jpeg ( char *  filename  ) 

Load a JPEG Image File

Parameters:
filename : String for png file name
Returns:
a pointer to FLGR_Data2D

Definition at line 513 of file flgrImageIO.c.

FLGR_Data2D* flgr2d_load_pgm ( char *  filename  ) 

Load a Gray level PGM Image File (P2 or P5)

Parameters:
filename : String for pgm file name
Returns:
a pointer to FLGR_Data2D
Examples:
example1.c, example2.c, example3.c, example4.c, example6.c, multithread_auto.c, and multithread_watershed.c.

Definition at line 1491 of file flgrImageIO.c.

FLGR_Data2D* flgr2d_load_png ( char *  filename  ) 

Load a Gray level PNG Image File

Parameters:
filename : String for png file name
Returns:
a pointer to FLGR_Data2D

Definition at line 158 of file flgrImageIO.c.

FLGR_Data2D* flgr2d_load_raw_desc ( FILE *  f,
int  byte_offset,
int  size_y,
int  size_x,
int  spp,
FLGR_Type  type 
)

Load a raw from a file descriptor.

The descriptor is not closed.

Parameters:
f : file descriptor
byte_offset : how many byte to skip (to skip header)
size_x : image width
size_y : image height
spp : how many sample per pixels
type : data type to use
Returns:
a pointer to FLGR_Data2D

Definition at line 1162 of file flgrImageIO.c.

FLGR_Data2D* flgr2d_load_raw_file ( char *  filename,
int  byte_offset,
int  size_y,
int  size_x,
int  spp,
FLGR_Type  type 
)

Load a raw image File

Parameters:
filename : String for raw file name
byte_offset : how many byte to skip (to skip header)
size_x : image width
size_y : image height
spp : how many sample per pixels
type : data type to use
Returns:
a pointer to FLGR_Data2D

Definition at line 1208 of file flgrImageIO.c.

FLGR_Data2D* flgr2d_load_text_desc ( FILE *  f,
int  size_y,
int  size_x,
int  spp,
FLGR_Type  type 
)

Load a text from a file descriptor.

The descriptor is not closed.

Parameters:
f : file descriptor
size_x : image width
size_y : image height
spp : how many sample per pixels
type : data type to use
Returns:
a pointer to FLGR_Data2D

Definition at line 1287 of file flgrImageIO.c.

FLGR_Data2D* flgr2d_load_text_file ( char *  filename,
int  size_y,
int  size_x,
int  spp,
FLGR_Type  type 
)

Load a text file and copy values to an images

Parameters:
filename : String for raw file name
size_x : image width
size_y : image height
spp : how many sample per pixels
type : data type to use
Returns:
a pointer to FLGR_Data2D

Definition at line 1363 of file flgrImageIO.c.

FLGR_Data2D* flgr2d_load_tiff ( char *  filename  ) 

Load a Tiff Image File

Parameters:
filename : String for png file name
Returns:
a pointer to FLGR_Data2D

Definition at line 983 of file flgrImageIO.c.

char* flgr2d_load_tiff_info ( char *  filename  ) 

Get Tiff Image Informations

Parameters:
filename : String for png file name
Returns:
a string

Definition at line 708 of file flgrImageIO.c.

FLGR_Ret flgr2d_save_jpeg ( FLGR_Data2D img,
char *  filename,
int  quality 
)

Save Image to JPEG File format

Parameters:
img : FLGR_Data2D
quality : Value in [0;100]
filename : string for filename
Returns:
FLGR_RET_OK, ...

Definition at line 605 of file flgrImageIO.c.

FLGR_Ret flgr2d_save_pgm ( FLGR_Data2D img,
char *  filename,
int  format 
)

Save a Gray level Image in PGM File format

Parameters:
img : FLGR_Data2D
format : 2 for P2 or 5 for P5
filename : string for file name (if no extension is given, '.pgm' is concatened)
Returns:
FLGR_RET_OK, ...
Examples:
example1.c, example2.c, example3.c, example4.c, example6.c, multithread_auto.c, and multithread_watershed.c.

Definition at line 1574 of file flgrImageIO.c.

FLGR_Ret flgr2d_save_png ( FLGR_Data2D img,
char *  filename 
)

Save a Gray level Image in PNG File format

Parameters:
img : FLGR_Data2D
filename : string for filename (if no extension is given, '.png' is concatened)
Returns:
FLGR_RET_OK, ...

Definition at line 334 of file flgrImageIO.c.

FLGR_Ret flgr2d_save_raw_desc ( FLGR_Data2D dat,
FILE *  f 
)

sav a raw to a file descriptor.

Parameters:
dat : 2d data to save
f : file descriptor
Returns:
a pointer to FLGR_Data2D

Definition at line 1240 of file flgrImageIO.c.

FLGR_Ret flgr2d_save_text_desc ( FLGR_Data2D img,
FILE *  f 
)

save an image to a text file

Parameters:
dat : 2d data to save
f : file descriptor
Returns:
a pointer to FLGR_Data2D

Definition at line 1395 of file flgrImageIO.c.

FLGR_Ret flgr2d_save_tiff ( FLGR_Data2D img,
char *  filename,
int  quality 
)

Save Image to Tiff File format

Parameters:
img : FLGR_Data2D
filename : string for filename
quality : tiff quality
Returns:
FLGR_RET_OK, ...

Definition at line 1121 of file flgrImageIO.c.

char* flgr_get_supported_image_format ( void   ) 

Get supported image file format

Returns:
a pointer to global const string

Definition at line 140 of file flgrImageIO.c.


SourceForge.net Logo
Generated on Tue Nov 11 19:17:28 2008 for Fulguro by doxygen 1.5.6