Reader/Writer for analyze format images. More...
#include <vil3d_analyze_format.h>
Public Member Functions | |
vil3d_analyze_format () | |
virtual | ~vil3d_analyze_format () |
The destructor must be virtual so that the memory chunk is destroyed. | |
virtual vil3d_image_resource_sptr | make_input_image (const char *) const |
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 |
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 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. |
Reader/Writer for analyze format images.
Definition at line 153 of file vil3d_analyze_format.h.
vil3d_analyze_format::vil3d_analyze_format | ( | ) |
Definition at line 449 of file vil3d_analyze_format.cxx.
vil3d_analyze_format::~vil3d_analyze_format | ( | ) | [virtual] |
The destructor must be virtual so that the memory chunk is destroyed.
Definition at line 452 of file vil3d_analyze_format.cxx.
void vil3d_file_format::add_format | ( | vil3d_file_format * | new_format | ) | [static, inherited] |
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, inherited] |
Access to available format readers supplied by add_format.
Definition at line 86 of file vil3d_file_format.cxx.
vil3d_image_resource_sptr vil3d_analyze_format::make_input_image | ( | const char * | filename | ) | const [virtual] |
Create an image_resource from an existing file.
Implements vil3d_file_format.
Definition at line 456 of file vil3d_analyze_format.cxx.
vil3d_image_resource_sptr vil3d_analyze_format::make_output_image | ( | const char * | filename1, |
unsigned | ni, | ||
unsigned | nj, | ||
unsigned | nk, | ||
unsigned | nplanes, | ||
enum vil_pixel_format | 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.
The file may be opened immediately for writing so that a header can be written. The width/height etc are explicitly specified, so that file_format implementors know what they need to do...
Implements vil3d_file_format.
Definition at line 478 of file vil3d_analyze_format.cxx.
unsigned vil3d_file_format::n_formats | ( | ) | [static, inherited] |
Number of formats available (number added by add_format().
Definition at line 80 of file vil3d_file_format.cxx.
virtual const char* vil3d_analyze_format::tag | ( | ) | const [inline, virtual] |
default filename tag for this image.
Implements vil3d_file_format.
Definition at line 173 of file vil3d_analyze_format.h.