LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::loadVectorImageList Class Reference

This functor loads a list of images and transforms each into a vector or all into a matrix where each row contains a vector image. More...

#include <ltiLoadVectorImageList.h>

Inheritance diagram for lti::loadVectorImageList:
Inheritance graph
[legend]
Collaboration diagram for lti::loadVectorImageList:
Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 The parameters for the class loadVectorImageList. More...

Public Member Functions

 loadVectorImageList ()
 loadVectorImageList (const parameters &par)
 loadVectorImageList (const loadVectorImageList &other)
 loadVectorImageList (const std::string &name, loadImageList::parameters::eOperationMode mode=loadImageList::parameters::ListFileName)
 loadVectorImageList (const std::list< std::string > &names)
virtual ~loadVectorImageList ()
virtual const char * getTypeName () const
bool apply (fvector &img)
bool apply (fvector &img, int &rows, int &columns)
bool apply (dvector &img)
bool apply (dvector &img, int &rows, int &columns)
bool apply (fmatrix &images)
bool apply (fmatrix &images, int &rows, int &columns)
bool apply (dmatrix &images)
bool apply (dmatrix &images, int &rows, int &columns)
loadVectorImageListcopy (const loadVectorImageList &other)
loadVectorImageListoperator= (const loadVectorImageList &other)
virtual functorclone () const
const parametersgetParameters () const
virtual bool updateParameters ()
virtual bool read (ioHandler &handler, const bool complete=true)

Detailed Description

This functor loads a list of images and transforms each into a vector or all into a matrix where each row contains a vector image.

For convenience it is possible to perform downsampling on the images while loading. Note that when getting a matrix of vector images all images must have the same size (i.e. all vector images must have the same length).

Use this functor just like loadImageList.


Constructor & Destructor Documentation

lti::loadVectorImageList::loadVectorImageList (  ) 

Default constructor.

lti::loadVectorImageList::loadVectorImageList ( const parameters par  ) 

Construct a functor using the given parameters.

lti::loadVectorImageList::loadVectorImageList ( const loadVectorImageList other  ) 

Copy constructor.

Parameters:
other the object to be copied
lti::loadVectorImageList::loadVectorImageList ( const std::string &  name,
loadImageList::parameters::eOperationMode  mode = loadImageList::parameters::ListFileName 
)

Sets one of two modes: parameters::ListFileName or parameters::DirName and the corresponding name of the file or directory in the parameters.

Default is the filename of a textfile containing image filenames.

See also:

Parameters:
name name of a file containing image filenames or of a directory
mode parameters::ListFileName or parameters::DirName.
lti::loadVectorImageList::loadVectorImageList ( const std::list< std::string > &  names  ) 
virtual lti::loadVectorImageList::~loadVectorImageList (  )  [virtual]

Destructor.


Member Function Documentation

bool lti::loadVectorImageList::apply ( dmatrix images,
int &  rows,
int &  columns 
)

Returns all images from the list as rows of the matrix images.

Parameters:
images all images as rows of the matrix.
rows number of rows of each image
columns number of columns of each image
Returns:
true if apply successful or false otherwise.
bool lti::loadVectorImageList::apply ( dmatrix images  ) 

Returns all images from the list as rows of the matrix images.

Parameters:
images all images as rows of the matrix.
Returns:
true if apply successful or false otherwise.
bool lti::loadVectorImageList::apply ( fmatrix images,
int &  rows,
int &  columns 
)

Returns all images from the list as rows of the matrix images.

Parameters:
images all images as rows of the matrix.
rows number of rows of each image
columns number of columns of each image
Returns:
true if apply successful or false otherwise.
bool lti::loadVectorImageList::apply ( fmatrix images  ) 

Returns all images from the list as rows of the matrix images.

Parameters:
images all images as rows of the matrix.
Returns:
true if apply successful or false otherwise.
bool lti::loadVectorImageList::apply ( dvector img,
int &  rows,
int &  columns 
)

Returns the current image from the list as a vector.

Parameters:
img the current image as vector
rows number of rows of the image
columns number of columns of the image
Returns:
true if apply successful or false otherwise.
bool lti::loadVectorImageList::apply ( dvector img  ) 

Returns the current image from the list as a vector.

Parameters:
img the current image as vector
Returns:
true if apply successful or false otherwise.
bool lti::loadVectorImageList::apply ( fvector img,
int &  rows,
int &  columns 
)

Returns the current image from the list as a vector.

Parameters:
img the current image as vector
rows number of rows of the image
columns number of columns of the image
Returns:
true if apply successful or false otherwise.
bool lti::loadVectorImageList::apply ( fvector img  ) 

Returns the current image from the list as a vector.

Parameters:
img the current image as vector
Returns:
true if apply successful or false otherwise.
virtual functor* lti::loadVectorImageList::clone (  )  const [virtual]

Returns a pointer to a clone of this functor.

Reimplemented from lti::loadImageList.

loadVectorImageList& lti::loadVectorImageList::copy ( const loadVectorImageList other  ) 

Copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::loadImageList.

const parameters& lti::loadVectorImageList::getParameters (  )  const

Returns used parameters.

Reimplemented from lti::loadImageList.

virtual const char* lti::loadVectorImageList::getTypeName (  )  const [virtual]

Returns the name of this type ("loadVectorImageList").

Reimplemented from lti::loadImageList.

loadVectorImageList& lti::loadVectorImageList::operator= ( const loadVectorImageList other  ) 

Alias for copy member.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::loadImageList.

virtual bool lti::loadVectorImageList::read ( ioHandler handler,
const bool  complete = true 
) [virtual]

Read the functor from the given ioHandler.

The default implementation is to read just the parameters object.

Since this virtual method needs to know the exact type of the parameters to call the proper read method, it will just assume that the current functor instance has a valid parameter set. If this is not the case, you need to reimplement the read method to set first a dummy parameter object.

Parameters:
handler the ioHandler to be used
complete if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written.
Returns:
true if write was successful

Reimplemented from lti::functor.

virtual bool lti::loadVectorImageList::updateParameters (  )  [virtual]

set functor's parameters.

This member makes a copy of theParam: the functor will keep its own copy of the parameters!

Returns:
true if successful, false otherwise

Reimplemented from lti::loadImageList.


The documentation for this class was generated from the following file:

Generated on Sat Apr 10 15:28:04 2010 for LTI-Lib by Doxygen 1.6.1