mimas::image_filesinput< T > Class Template Reference
[Image Input]

Class for reading a set of image-files. More...

#include <image_filesinput.h>

Inheritance diagram for mimas::image_filesinput< T >:

Inheritance graph
[legend]
Collaboration diagram for mimas::image_filesinput< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 image_filesinput (void)
 Constructor.
void addFileName (const std::string &fileName)
 Add a filename to the list.
virtual void read (image< T > &image) throw (mimasexception)
 Read the next image file.

Protected Attributes

std::deque< std::string > fileNames
 List of filenames.

Detailed Description

template<typename T>
class mimas::image_filesinput< T >

Class for reading a set of image-files.

Example of usage:

    using namespace mimas;
    int main( int argc, char *argv[] ) {
       image_filesinput< rgba< unsigned char > > input;
       for ( int i=1; i<argc; i++ )
          input.addFileName( argv[i] );
       ...
       image< rgba< unsigned char > > image;
       while ( input >> image ) {
          ...
       };
    }
See also:
image_fileinput

Definition at line 31 of file image_filesinput.h.


Constructor & Destructor Documentation

template<typename T>
mimas::image_filesinput< T >::image_filesinput ( void   )  [inline, explicit]

Constructor.

Definition at line 35 of file image_filesinput.h.


Member Function Documentation

template<typename T>
void mimas::image_filesinput< T >::addFileName ( const std::string &  fileName  )  [inline]

Add a filename to the list.

A filename is added to the end of the list.

Definition at line 38 of file image_filesinput.h.

References mimas::image_filesinput< T >::fileNames.

template<typename T>
virtual void mimas::image_filesinput< T >::read ( image< T > &  image  )  throw (mimasexception) [virtual]

Read the next image file.

The first filename in the list is removed and the file with this name is opened. The content of the file is read into the image.

Parameters:
image Object to store image in.

Implements mimas::image_input< T >.


Member Data Documentation

template<typename T>
std::deque< std::string > mimas::image_filesinput< T >::fileNames [protected]

List of filenames.

Definition at line 47 of file image_filesinput.h.

Referenced by mimas::image_filesinput< T >::addFileName().


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:31 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...