Functions | |
char | itpp::pnm_type (const std::string &filename) |
Determines the type of a PNM file, based on magic numbers. The returned value is a character between '1' and '6'. If an error occured, the returned value is the character '0'. | |
bool | itpp::pnm_info (const std::string &filename, char &pnm_type, int &width, int &height, int &max_val, std::string &comments) |
Retrieve some information about an pnm file. | |
bool | itpp::pgm_read (const std::string &filename, imat &m, std::string &comments) |
Read the entire graymap into the matrix m or return false if the function failed. | |
bool | itpp::pgm_read (const std::string &filename, imat &m, int r1, int r2, int c1, int c2) |
Read a part of the graymap into the matrix m. | |
imat | itpp::pgm_read (const std::string &filename) |
Read a pgm file of name filename and return the corresponding matrix of integers. Return a void matrix if an error ocurred. | |
bool | itpp::pgm_write (const std::string &filename, const imat &m, const std::string &comments="Generated by IT++ (http://itpp.sourceforge.net)") |
Create an image file from the matrix of integer. | |
bool | itpp::ppm_read (const std::string &filename, imat &r, imat &g, imat &b, std::string &comments) |
Read the color image file in the format ppm. The image is retrieved as a set of three matrices, each of whom is a plan of RGB component. | |
bool | itpp::ppm_read (const std::string &filename, imat &r, imat &g, imat &b) |
Read the color image file in the PPM format. | |
bool | itpp::ppm_read (const std::string &filename, imat &r, imat &g, imat &b, int r1, int r2, int c1, int c2) |
Read a part of the pixmap into the matrix m. The parameters r1, r2, c1 and c2 are the rows and columns (inclusive) of the subimage. | |
bool | itpp::ppm_write (const std::string &filename, const imat &r, const imat &g, const imat &b, const std::string &comments="Generated by IT++ (http://itpp.sourceforge.net)", int max_val=255) |
Write the matrix m as a pixmap. | |
imat | itpp::img_double2int (const mat &m, int max_val, double double_min, double double_max) |
Prepare a matrix of double to be writted as an image. | |
mat | itpp::img_int2double (const imat &m, int max_val, double double_min, double double_max) |
Return a matrix of double which is a scaled version of the input matrix m of integers. |
There are several utilities available for manipulating PNM images. Search the net for the netpbm package.
|
Determines the type of a PNM file, based on magic numbers. The returned value is a character between '1' and '6'. If an error occured, the returned value is the character '0'.
|
|
Retrieve some information about an pnm file.
|
|
Read the entire graymap into the matrix m or return false if the function failed.
|
|
Read a part of the graymap into the matrix m.
|
|
Read a pgm file of name filename and return the corresponding matrix of integers. Return a void matrix if an error ocurred.
|
|
Create an image file from the matrix of integer.
|
|
Read the color image file in the format ppm. The image is retrieved as a set of three matrices, each of whom is a plan of RGB component.
|
|
Read the color image file in the PPM format.
|
|
Read a part of the pixmap into the matrix m. The parameters r1, r2, c1 and c2 are the rows and columns (inclusive) of the subimage.
|
|
Write the matrix m as a pixmap.
|
|
Prepare a matrix of double to be writted as an image.
|
|
Return a matrix of double which is a scaled version of the input matrix m of integers.
|
Generated on Fri Jan 11 08:51:41 2008 for IT++ by Doxygen 1.3.9.1