NAME
kjb_write_image - Writes a float image to a file
SYNOPSIS
#include "i/i_float_io.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
int kjb_write_image
(
const KJB_image *ip,
const char *file_name
);
DESCRIPTION
This routine writes a float image to a file. The image file format is
specified by the suffix of the file name. For example, if the argument
"file_name" is "xxx.tif", then the image is written as a TIFF file. If there
is no suffix, then the image file format will be sun raster. ".sun" or ".ras"
can also be used for sun raster. Practically any image format can be
specified provided that the appropriate conversion programs are in place for
the more unusual cases.
The suffixes ".mid" and ".kiff" are used to write the SFU specific MID and
KIFF file formats.
RETURNS
NO_ERROR on sucess and ERROR on failure, with an error message being set.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
kjb_read_image
,
kjb_read_image_2
,
display_matrix
,
kjb_display_image