Modifications
000216 AWF Initial version.
011002 Peter Vanroose - vil1_save now respects top-is-first; vil1_save_raw not
Definition in file vil1_save.h.
#include <vcl_string.h>
#include <vil1/vil1_image.h>
Go to the source code of this file.
Functions | |
| bool | vil1_save (vil1_image const &, char const *filename) |
| Send vil1_image to disk, deducing format from filename. | |
| bool | vil1_save (vil1_image, char const *filename, char const *file_format) |
| Send vil1_image to disk, given filename. | |
| bool | vil1_save_raw (vil1_image const &, char const *filename, char const *file_format) |
| Send vil1_image to disk, given filename; preserve byte order. | |
| bool | vil1_save_raw (vil1_image const &, vil1_stream *outstream, char const *file_format="pnm") |
| Send vil1_image to outstream. | |
| void | vil1_save_gray (unsigned char const *p, int w, int h, vcl_string const &fn) |
| Save raw unsigned chars, deducing format from filename. | |
| void | vil1_save_gray (float const *p, int w, int h, vcl_string const &fn) |
| Save raw floats as gray. | |
| void | vil1_save_gray (double const *p, int w, int h, vcl_string const &fn) |
| Save raw doubles as gray. | |
| void | vil1_save_rgb (unsigned char const *p, int w, int h, vcl_string const &fn) |
| Save raw RGB, deducing format from filename. | |
| void | vil1_save_rgb (float const *p, int w, int h, vcl_string const &fn) |
| Save raw floats as RGB. See vil1_save_gray. | |
| void | vil1_save_rgb (double const *p, int w, int h, vcl_string const &fn) |
| Save raw doubles as RGB. See vil1_save_gray. | |
| bool vil1_save | ( | vil1_image | , | |
| char const * | filename, | |||
| char const * | file_format | |||
| ) |
| bool vil1_save | ( | vil1_image const & | , | |
| char const * | filename | |||
| ) |
Send vil1_image to disk, deducing format from filename.
Definition at line 107 of file vil1_save.cxx.
| void vil1_save_gray | ( | double const * | p, | |
| int | w, | |||
| int | h, | |||
| vcl_string const & | fn | |||
| ) |
Save raw doubles as gray.
No scaling is performed, so values would be 0..255. File format is deduced from filename.
Definition at line 160 of file vil1_save.cxx.
| void vil1_save_gray | ( | float const * | p, | |
| int | w, | |||
| int | h, | |||
| vcl_string const & | fn | |||
| ) |
Save raw floats as gray.
No scaling is performed, so values would be 0..255. File format is deduced from filename.
Definition at line 152 of file vil1_save.cxx.
| void vil1_save_gray | ( | unsigned char const * | p, | |
| int | w, | |||
| int | h, | |||
| vcl_string const & | fn | |||
| ) |
Save raw unsigned chars, deducing format from filename.
Definition at line 144 of file vil1_save.cxx.
| bool vil1_save_raw | ( | vil1_image const & | i, | |
| vil1_stream * | os, | |||
| char const * | file_format | |||
| ) |
Send vil1_image to outstream.
The possible file_formats are defined by the subclasses of vil1_file_format in vil1_file_format.cxx
Definition at line 56 of file vil1_save.cxx.
| bool vil1_save_raw | ( | vil1_image const & | , | |
| char const * | filename, | |||
| char const * | file_format | |||
| ) |
Send vil1_image to disk, given filename; preserve byte order.
Definition at line 47 of file vil1_save.cxx.
| void vil1_save_rgb | ( | double const * | p, | |
| int | w, | |||
| int | h, | |||
| vcl_string const & | fn | |||
| ) |
| void vil1_save_rgb | ( | float const * | p, | |
| int | w, | |||
| int | h, | |||
| vcl_string const & | fn | |||
| ) |
| void vil1_save_rgb | ( | unsigned char const * | p, | |
| int | w, | |||
| int | h, | |||
| vcl_string const & | fn | |||
| ) |
1.5.1