#include <stdio.h>
#include <stdlib.h>
#include <CMotion2DImage.h>
Go to the source code of this file.
Functions | |
bool | ReadRAW8 (CMotion2DImage< unsigned char > &I, const char filename[FILENAME_MAX], unsigned nb_rows, unsigned nb_cols) |
bool | ReadRAW8 (CMotion2DImage< short > &I, const char filename[FILENAME_MAX], unsigned nb_rows, unsigned nb_cols) |
bool | ReadRAW16 (CMotion2DImage< short > &I, const char filename[FILENAME_MAX], unsigned nb_rows, unsigned nb_cols) |
bool | WriteRAW8 (CMotion2DImage< unsigned char > I, const char *filename) |
bool | WriteRAW8 (CMotion2DImage< short > I, const char *filename) |
bool | WriteRAW16 (CMotion2DImage< short > I, const char *filename) |
RAW file format images are simply made of the list of pixel values with no header. That is why the number of columns and of rows must be given by the user.
Two sets of functions exist, one for the traditional 8-bits images named RAW8 (see functions ReadRAW8() and WriteRAW8()), the other for 9 to 16 bits images named RAW16 (see functions ReadRAW16() and WriteRAW16()).
|
Read the contents of the purely raw images (without header), allocate memory for the corresponding gray level image, convert the data in gray level, and set the bitmap with the gray level data. It process 16 bits data (level between 0 and 65534) If the image has been already initialized, memory allocation is done only if the new image size is different, else we re-use the same memory space.
|
|
Read the contents of the purely raw images (without header), allocate memory for the corresponding gray level image, convert the data in gray level, and set the bitmap with the gray level data. It process 8-bits data (graylevel between 0 and 255). If the image has been already initialized, memory allocation is done only if the new image size is different, else we re-use the same memory space.
|
|
Read the contents of the purely raw images (without header), allocate memory for the corresponding gray level image, convert the data in gray level, and set the bitmap with the gray level data. It process 8-bits data (graylevel between 0 and 255). If the image has been already initialized, memory allocation is done only if the new image size is different, else we re-use the same memory space.
|
|
Write the content of the bitmap in the file which name is given by filename. This function writes a portable RAW pixmap ("just a list of grayvalues") file without header. It process 16 bits data (level between 0 and 65534).
|
|
Write the content of the bitmap in the file which name is given by filename. This function writes a portable RAW pixmap ("just a list of grayvalues") file without header. It process 8-bits data (graylevel between 0 and 255).
|
|
Write the content of the bitmap in the file which name is given by filename. This function writes a portable RAW pixmap ("just a list of grayvalues") file without header. It process 8-bits data (graylevel between 0 and 255).
|