59 char pnm_type(
const std::string & filename);
71 bool pnm_info(
const std::string & filename,
76 std::string & comments);
89 bool pgm_read(
const std::string & filename, imat & m,
90 std::string & comments);
103 bool pgm_read(
const std::string & filename, imat &m,
104 int r1,
int r2,
int c1,
int c2);
114 imat
pgm_read(
const std::string & filename);
126 bool pgm_write(
const std::string & filename,
128 const std::string & comments =
"Generated by IT++ (http://itpp.sourceforge.net)");
145 bool ppm_read(
const std::string & filename,
146 imat &r, imat &g, imat &b,
147 std::string & comments);
158 bool ppm_read(
const std::string & filename,
159 imat &r, imat &g, imat &b);
169 bool ppm_read(
const std::string & filename,
170 imat &r, imat &g, imat &b,
171 int r1,
int r2,
int c1,
int c2);
184 bool ppm_write(
const std::string & filename,
188 const std::string & comments =
"Generated by IT++ (http://itpp.sourceforge.net)",
208 double double_min = 0 ,
209 double double_max = 1);
225 double double_min = 0,
226 double double_max = 1);
230 #endif // #ifndef PNM_H