#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <CMotion2DImage.h>
#include <Motion2DImage_PNG.h>
#include <png.h>
#include "readpng.h"
#include "writepng.h"
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.
|