Functions

K:/Projects/scplusplus/gpl_releases/nttw/include/image.h File Reference

Image Header/Object for the NTTW C Library. More...

#include <stdio.h>
#include "array.h"
Include dependency graph for image.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

NTTW_DLL_SYM int openFile_Read (const char *filename, FILE **inFilePtr, int binary)
 Opens the file for read mode.
NTTW_DLL_SYM int openFile_Write (const char *filename, FILE **inFilePtr, int binary)
 Opens the file for write mode.
NTTW_DLL_SYM int openFile_Append (const char *filename, FILE **inFilePtr, int binary)
 Opens the file for append mode.
NTTW_DLL_SYM int readCSV (nttw_integer **data, const int rows, const int cols, const char *filename)
 Reads a Comma Separated Value (CSV) file. Memory is internally allocated to the correct size.
NTTW_DLL_SYM int readPGMHeader (FILE *inFile, char *type, int *rows, int *cols, int *maxGrey)
 Reads the parameters in the header of a PGM file.
NTTW_DLL_SYM int readPGM (nttw_integer **data, int *rows, int *cols, const char *filename, int binary)
 Reads in an image which has a PGM format of name given.
NTTW_DLL_SYM int readSignedPGM (long **data, int *rows, int *cols, const char *filename, int binary)
 Inputs data as a PGM file with signed values.
NTTW_DLL_SYM int readUCharPGM (unsigned char **data, int *rows, int *cols, const char *filename, int binary)
 Inputs data as a PGM file with signed values.
NTTW_DLL_SYM int writePGM (nttw_integer *data, const int rows, const int cols, const int greyMax, const char *filename, int binary)
 Outputs data as a PGM file.
NTTW_DLL_SYM int writeSignedPGM (long *data, const int rows, const int cols, const int greyMax, const char *filename, int binary)
 Outputs data as a PGM file with signed values.
NTTW_DLL_SYM int writeUCharPGM (unsigned char *data, const int rows, const int cols, const char *filename, int binary)
 Outputs data as a PGM file with unsigned character values.
NTTW_DLL_SYM long * cropImage (long *initImage, const int initRows, const int initCols, const int newRows, const int newCols)
 Crops the image to the size provided from the centre. EXPERIMENTAL.
NTTW_DLL_SYM long * truncateImage (long *initImage, const int initRows, const int initCols, const int newRows, const int newCols)
 Crops the image to the size provided from the top left-hand side. EXPERIMENTAL.
NTTW_DLL_SYM long * embedImage (long *initImage, const int initRows, const int initCols, const int newRows, const int newCols)
 Embeds the image to the size provided from the top left-hand corner. EXPERIMENTAL.
NTTW_DLL_SYM long * diffImage (long *image1, long *image2, const int rows, const int cols)
 Takes the differences of image1 and image2 and returns pointer to result. EXPERIMENTAL.

Detailed Description

Image Header/Object for the NTTW C Library.

Image Source for the NTTW C Library.

NTTW Image Module

This file defines the functions for input and output of image files.

This file is part of NTTW Library.

NTTW 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.

NTTW 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 NTTW. If not, see <http://www.gnu.org/licenses/>.

Author:
Shekhar S. Chandra, 2008-9

NTTW Image Module

This file implements the functions for input and output of image files.

This file is part of NTTW Library.

NTTW 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.

NTTW 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 NTTW. If not, see <http://www.gnu.org/licenses/>.

Author:
Shekhar S. Chandra, 2008-9

Definition in file image.h.