![]() |
Bsoft 2.1.4
Bernard's software package
|
Functions for reading and writing PBM, PGM and PPM files. More...
Functions | |
char * | pnm_next_item (char *aptr) |
unsigned char * | pnm_read_data (ifstream *fimg, Bimage *p) |
int | readPNM (Bimage *p, int readdata, int img_select) |
Reading a PNM type file. A simple image format. PBM bit image format. PGM grayscale image format. PPM RGB color image format. File format extensions: .pbm, .pgm, .ppm The header contains ascii text indicating the image and element sizes. Data types: byte, unsigned short. More... | |
int | writePNM (Bimage *p) |
Writing a PNM type file. A simple image format. More... | |
Variables | |
int | verbose |
Functions for reading and writing PBM, PGM and PPM files.
char * pnm_next_item | ( | char * | aptr | ) |
unsigned char * pnm_read_data | ( | ifstream * | fimg, |
Bimage * | p | ||
) |
int readPNM | ( | Bimage * | p, |
int | readdata, | ||
int | img_select | ||
) |
Reading a PNM type file. A simple image format. PBM bit image format. PGM grayscale image format. PPM RGB color image format. File format extensions: .pbm, .pgm, .ppm The header contains ascii text indicating the image and element sizes. Data types: byte, unsigned short.
*p | the image structure. |
readdata | flag to activate reading of image data. |
img_select | image selection in multi-image file (-1 = all images). |
int writePNM | ( | Bimage * | p | ) |
Writing a PNM type file. A simple image format.
*p | the image structure. |
|
extern |