#include <CMotion2DImage.h>
Go to the source code of this file.
Functions | |
int | ReadPNG (CMotion2DImage< unsigned char > &I, const char *filename) |
int | ReadPNG (CMotion2DImage< short > &I, const char *filename) |
int | WritePNG (CMotion2DImage< unsigned char > &I, const char *filename) |
int | WritePNG (CMotion2DImage< short > &I, const char *filename) |
|
Read the contents of the PNG 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.
|
|
Read the contents of the PNG 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.
|
|
Write the content of the bitmap in the file which name is given by filename. This function writes a PNG file.
|
|
Write the content of the bitmap in the file which name is given by filename. This function writes a PNG file.
|