#include <vil3d_file_format.h>
Public Member Functions | |
virtual | ~vil3d_file_format () |
virtual vil3d_image_resource_sptr | make_input_image (const char *filename) const =0 |
Create an image_resource from an existing file. | |
virtual vil3d_image_resource_sptr | make_output_image (const char *filename, unsigned ni, unsigned nj, unsigned nk, unsigned nplanes, enum vil_pixel_format) const =0 |
Make a "generic_image" on which put_section may be applied. | |
virtual const char * | tag () const =0 |
default filename tag for this image. | |
Static Public Member Functions | |
static void | add_format (vil3d_file_format *new_format) |
Add a format reader to current list of those available. | |
static unsigned | n_formats () |
Number of formats available (number added by add_format(). | |
static const vil3d_file_format & | format (unsigned i) |
Access to available format readers supplied by add_format. |
Definition at line 15 of file vil3d_file_format.h.
virtual vil3d_file_format::~vil3d_file_format | ( | ) | [inline, virtual] |
Definition at line 18 of file vil3d_file_format.h.
void vil3d_file_format::add_format | ( | vil3d_file_format * | new_format | ) | [static] |
Add a format reader to current list of those available.
This function will take ownership of the passed object, and will delete it when the program dies.
Definition at line 74 of file vil3d_file_format.cxx.
const vil3d_file_format & vil3d_file_format::format | ( | unsigned | i | ) | [static] |
Access to available format readers supplied by add_format.
Definition at line 86 of file vil3d_file_format.cxx.
virtual vil3d_image_resource_sptr vil3d_file_format::make_input_image | ( | const char * | filename | ) | const [pure virtual] |
Create an image_resource from an existing file.
Implemented in vil3d_analyze_format, vil3d_meta_image_format, vil3d_slice_list_format, and vil3d_gipl_format.
vil3d_image_resource_sptr vil3d_meta_image_format::make_output_image | ( | const char * | filename, |
unsigned | ni, | ||
unsigned | nj, | ||
unsigned | nk, | ||
unsigned | nplanes, | ||
enum vil_pixel_format | |||
) | const [pure 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.
Implemented in vil3d_analyze_format, vil3d_meta_image_format, vil3d_slice_list_format, and vil3d_gipl_format.
Definition at line 631 of file vil3d_meta_image_format.cxx.
unsigned vil3d_file_format::n_formats | ( | ) | [static] |
Number of formats available (number added by add_format().
Definition at line 80 of file vil3d_file_format.cxx.
virtual const char* vil3d_file_format::tag | ( | ) | const [pure virtual] |
default filename tag for this image.
Implemented in vil3d_analyze_format, vil3d_meta_image_format, vil3d_slice_list_format, and vil3d_gipl_format.