#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <CMotion2DImage.h>
#include <Motion2DImage_PNM.h>
Functions | |
bool | ReadPGM (CMotion2DImage< unsigned char > &I, const char *filename) |
bool | ReadPGM (CMotion2DImage< short > &I, const char *filename) |
bool | ReadPPM (CMotion2DImage< unsigned char > &I, const char *filename) |
bool | ReadPPM (CMotion2DImage< short > &I, const char *filename) |
bool | WritePGM (CMotion2DImage< unsigned char > I, const char *filename) |
bool | WritePGM (CMotion2DImage< short > I, const char *filename) |
bool | WritePPM (CMotion2DImage< unsigned char > I, const char *filename) |
bool | WritePPM (CMotion2DImage< short > I, const char *filename) |
|
Read the contents of the portable gray pixmap (PGM P5) filename, allocate memory for the corresponding image, and set the bitmap whith the content of the file.
|
|
Read the contents of the portable gray pixmap (PGM P5) filename, allocate memory for the corresponding image, and set the bitmap whith the content of the file.
|
|
Read the contents of the portable pixmap (PPM P6) filename, allocate memory for the corresponding gray level image, convert the data in gray level, and set the bitmap whith the gray level data. That means that the image I is a "black and white" rendering of the original image in filename, as in a black and white photograph. The quantization formula used is .
|
|
Read the contents of the portable pixmap (PPM P6) filename, allocate memory for the corresponding gray level image, convert the data in gray level, and set the bitmap whith the gray level data. That means that the image I is a "black and white" rendering of the original image in filename, as in a black and white photograph. The quantization formula used is .
|
|
Write the content of the bitmap in the file which name is given by filename. This function writes a portable gray pixmap (PGM P5) file.
|
|
Write the content of the bitmap in the file which name is given by filename. This function writes a portable gray pixmap (PGM P5) file.
|
|
Write the content of the bitmap in the file which name is given by filename. This function writes a portable pixmap (PPM P5) file.
|
|
Write the content of the bitmap in the file which name is given by filename. This function writes a portable pixmap (PPM P5) file.
|