#include <itpp/srccode/pnm.h>
#include <itpp/base/itassert.h>
#include <fstream>
Go to the source code of this file.
Namespaces | |
namespace | itpp |
Functions | |
static void | itpp::pnm_read_comments (istream &i, string &comments) |
static void | itpp::pnm_write_comments (ostream &o, const string &comments) |
static bool | itpp::pnm_read_header (ifstream &file, char &pnm_type, int &width, int &height, int &max_val, string &comments, char pnm_type_required= '0') |
static bool | itpp::pnm_write_header (ofstream &file, char type, int width, int height, int max_val, const string &comments) |
char | itpp::pnm_type (const string &filename) |
bool | itpp::pnm_info (const string &filename, char &pnm_type, int &width, int &height, int &max_val, string &comments) |
bool | itpp::pgm_read (const string &filename, imat &m, string &comments) |
imat | itpp::pgm_read (const string &filename) |
bool | itpp::pgm_read (const string &filename, imat &m, int r1, int r2, int c1, int c2) |
bool | itpp::pgm_write (const string &filename, const imat &m, const string &comments) |
bool | itpp::ppm_read (const string &filename, imat &r, imat &g, imat &b, string &comments) |
bool | itpp::ppm_read (const string &filename, imat &r, imat &g, imat &b) |
bool | itpp::ppm_read (const string &filename, imat &r, imat &g, imat &b, int r1, int r2, int c1, int c2) |
bool | itpp::ppm_write (const string &filename, const imat &r, const imat &g, const imat &b, const string &comments, int max_val) |
imat | itpp::img_double2int (const mat &m, int max_val=255, double double_min=0, double double_max=1) |
Prepare a matrix of double to be writted as an image. | |
mat | itpp::img_int2double (const imat &m, int max_val=255, double double_min=0, double double_max=1) |
Return a matrix of double which is a scaled version of the input matrix m of integers. |
-------------------------------------------------------------------------
IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions
Copyright (C) 1995-2006 (see AUTHORS file for a list of contributors)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-------------------------------------------------------------------------
Definition in file pnm.cpp.
Generated on Thu Apr 19 14:15:00 2007 for IT++ by Doxygen 1.5.1