JWS C Library
C language utility library
|
Definitions for functions to read and write images. More...
#include <jwsc/config.h>
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <assert.h>
#include <string.h>
#include "jwsc/base/error.h"
#include "jwsc/base/fname.h"
#include "jwsc/image/image.h"
#include "jwsc/image/jiff.h"
#include "jwsc/image/image_io.h"
Go to the source code of this file.
Functions | |||||
read_image | |||||
Reads an image from a file. | |||||
Error * | read_image_f (Image_f **img_out, const char *fname) | ||||
Reads a single precision floating point image from a file. | |||||
write_image | |||||
Writes an image to a file. | |||||
Error * | write_image_f (const Image_f *img, const char *fname) | ||||
Write a single precision floating point image to a file. |
Definitions for functions to read and write images.
Definition in file image_io.c.
Reads a single precision floating point image from a file.
The type of image to read is based on the file name suffix.
img_out | Result parameter. If *img_out is NULL, an image is allocated; otherwise its space is re-used. |
fname | Name of the image file to read. |
Definition at line 88 of file image_io.c.
Write a single precision floating point image to a file.
img | Image to write. |
fname | Name of the file to write the image to. |
Definition at line 191 of file image_io.c.