Definitions of PNM graphics format I/O function. More...
Go to the source code of this file.
Namespaces | |
namespace | itpp |
itpp namespace | |
Functions | |
ITPP_EXPORT 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'. | |
ITPP_EXPORT 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. | |
ITPP_EXPORT 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. | |
ITPP_EXPORT 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. | |
ITPP_EXPORT 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. | |
ITPP_EXPORT 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. | |
ITPP_EXPORT 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. | |
ITPP_EXPORT bool | itpp::ppm_read (const std::string &filename, imat &r, imat &g, imat &b) |
Read the color image file in the PPM format. | |
ITPP_EXPORT 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. | |
ITPP_EXPORT 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. | |
ITPP_EXPORT 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. | |
ITPP_EXPORT 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. | |
Definitions of PNM graphics format I/O function.
Copyright (C) 1995-2010 (see AUTHORS file for a list of contributors)
This file is part of IT++ - a C++ library of mathematical, signal processing, speech processing, and communications classes and functions.
IT++ 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 3 of the License, or (at your option) any later version.
IT++ 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 IT++. If not, see http://www.gnu.org/licenses/.
Definition in file pnm.h.
Generated on Sat Jul 6 2013 10:54:27 for IT++ by Doxygen 1.8.2