vil3d_slice_list_format Class Reference

#include <vil3d_slice_list.h>

Inheritance diagram for vil3d_slice_list_format:

vil3d_file_format List of all members.

Detailed Description

Format class for a volume made up of a list of images.

The filename format can be a list of ';' delimited filenames. It can also be single filename where '#' represents a numeric character. A set of image files with contiguous numbering will be loaded, starting with the lowest number.

The first 2D image to be loaded is the k=0 slice in the image, etc.

Definition at line 23 of file vil3d_slice_list.h.


Public Member Functions

 vil3d_slice_list_format ()
virtual ~vil3d_slice_list_format ()
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_formatformat (unsigned i)
 Access to available format readers supplied by add_format.

Constructor & Destructor Documentation

vil3d_slice_list_format::vil3d_slice_list_format (  ) 

Definition at line 18 of file vil3d_slice_list.cxx.

vil3d_slice_list_format::~vil3d_slice_list_format (  )  [virtual]

Definition at line 20 of file vil3d_slice_list.cxx.


Member Function Documentation

vil3d_image_resource_sptr vil3d_slice_list_format::make_input_image ( const char *   )  const [virtual]

Create an image_resource from an existing file.

Implements vil3d_file_format.

Definition at line 91 of file vil3d_slice_list.cxx.

vil3d_image_resource_sptr vil3d_slice_list_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.

Definition at line 166 of file vil3d_slice_list.cxx.

virtual const char* vil3d_slice_list_format::tag (  )  const [inline, virtual]

default filename tag for this image.

Implements vil3d_file_format.

Definition at line 41 of file vil3d_slice_list.h.

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 72 of file vil3d_file_format.cxx.

unsigned vil3d_file_format::n_formats (  )  [static, inherited]

Number of formats available (number added by add_format().

Definition at line 78 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 84 of file vil3d_file_format.cxx.


The documentation for this class was generated from the following files:
Generated on Sat Nov 7 05:14:59 2009 for contrib/mul/vil3d by  doxygen 1.5.1