Reader/Writer for v3i format images. More...
#include <vimt3d_vil3d_v3i.h>
Public Member Functions | |
vimt3d_vil3d_v3i_format () | |
virtual | ~vimt3d_vil3d_v3i_format () |
The destructor must be virtual so that the memory chunk is destroyed. | |
virtual vil3d_image_resource_sptr | make_input_image (const char *) const |
virtual vil3d_image_resource_sptr | make_output_image (const char *filename, unsigned ni, unsigned nj, unsigned nk, unsigned nplanes, enum vil_pixel_format) const |
Make a "generic_image" on which put_section may be applied. | |
virtual const char * | tag () const |
default filename tag for this image. | |
Static Public Member Functions | |
static unsigned | magic_number () |
The magic number to identify a vsl stream as a v3i image. | |
static void | add_format (vil3d_file_format *new_format) |
static unsigned | n_formats () |
static const vil3d_file_format & | format (unsigned i) |
Reader/Writer for v3i format images.
To use the v3i format with vil3d_load, vil3d_save, etc add the following code at the start of your program
vil3d_file_format::add_format(new vimt3d_vil3d_v3i_format);
Definition at line 40 of file vimt3d_vil3d_v3i.h.
vimt3d_vil3d_v3i_format::vimt3d_vil3d_v3i_format | ( | ) | [inline] |
Definition at line 43 of file vimt3d_vil3d_v3i.h.
virtual vimt3d_vil3d_v3i_format::~vimt3d_vil3d_v3i_format | ( | ) | [inline, virtual] |
The destructor must be virtual so that the memory chunk is destroyed.
Definition at line 45 of file vimt3d_vil3d_v3i.h.
unsigned vimt3d_vil3d_v3i_format::magic_number | ( | ) | [static] |
The magic number to identify a vsl stream as a v3i image.
You can create/read a v3i image using vsl by opening the stream, reading/writing magic_number(), then reading/writing a pointer to a vimt_image.
Definition at line 31 of file vimt3d_vil3d_v3i.cxx.
vil3d_image_resource_sptr vimt3d_vil3d_v3i_format::make_input_image | ( | const char * | filename | ) | const [virtual] |
Implements vil3d_file_format.
Definition at line 36 of file vimt3d_vil3d_v3i.cxx.
virtual vil3d_image_resource_sptr vimt3d_vil3d_v3i_format::make_output_image | ( | const char * | filename, |
unsigned | ni, | ||
unsigned | nj, | ||
unsigned | nk, | ||
unsigned | nplanes, | ||
enum | vil_pixel_format | ||
) | const [virtual] |
Make a "generic_image" on which put_section may be applied.
The file may be opened immediately for writing so that a header can be written.
Implements vil3d_file_format.
virtual const char* vimt3d_vil3d_v3i_format::tag | ( | ) | const [inline, virtual] |
default filename tag for this image.
Implements vil3d_file_format.
Definition at line 59 of file vimt3d_vil3d_v3i.h.