JWS C Library
C language utility library
|
Declarations for functions to read and write images. More...
#include <jwsc/config.h>
#include <stdlib.h>
#include "jwsc/base/error.h"
#include "jwsc/image/image.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 | |
Reads a single precision floating point image from a file using ImageMagick. 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. |
Declarations for functions to read and write images.
Definition in file image_io.h.
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.