CVR-Lib last update 20 Sep 2009

cvr::locationMatch::locationMatch::parameters Class Reference

The parameters for the class locationMatch. More...

#include <cvrLocationMatch.h>

Inheritance diagram for cvr::locationMatch::locationMatch::parameters:

Inheritance graph
[legend]
Collaboration diagram for cvr::locationMatch::locationMatch::parameters:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 parameters ()
 parameters (const parameters &other)
 ~parameters ()
parameterscopy (const parameters &other)
parametersoperator= (const parameters &other)
virtual const std::string & name () const
virtual parametersclone () const
virtual parametersnewInstance () const
virtual bool write (ioHandler &handler, const bool complete=true) const
virtual bool read (ioHandler &handler, const bool complete=true)

Public Attributes

bool bidirectional
double threshold
eMatchType matchType
int bucketSize


Detailed Description

The parameters for the class locationMatch.

Constructor & Destructor Documentation

cvr::locationMatch::locationMatch::parameters::parameters (  ) 

Default constructor.

Reimplemented from cvr::functor::functor::parameters.

cvr::locationMatch::locationMatch::parameters::parameters ( const parameters other  ) 

Copy constructor.

Parameters:
other the parameters object to be copied

Reimplemented from cvr::functor::functor::parameters.

cvr::locationMatch::locationMatch::parameters::~parameters (  )  [virtual]

Destructor.

Reimplemented from cvr::functor::functor::parameters.


Member Function Documentation

virtual parameters* cvr::locationMatch::locationMatch::parameters::clone (  )  const [virtual]

Returns a pointer to a clone of the parameters.

Implements cvr::functor::functor::parameters.

parameters& cvr::locationMatch::locationMatch::parameters::copy ( const parameters other  ) 

Copy the contents of a parameters object.

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

virtual const std::string& cvr::locationMatch::locationMatch::parameters::name (  )  const [virtual]

Returns the complete name of the parameters class.

Implements cvr::functor::functor::parameters.

virtual parameters* cvr::locationMatch::locationMatch::parameters::newInstance (  )  const [virtual]

Returns a pointer to a new instance of the parameters.

Implements cvr::functor::functor::parameters.

parameters& cvr::locationMatch::locationMatch::parameters::operator= ( const parameters other  ) 

Copy the contents of a parameters object.

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

virtual bool cvr::locationMatch::locationMatch::parameters::read ( ioHandler handler,
const bool  complete = true 
) [virtual]

Read the parameters from the given ioHandler.

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 cvr::parametersManager::parametersManager::parameters.

virtual bool cvr::locationMatch::locationMatch::parameters::write ( ioHandler handler,
const bool  complete = true 
) const [virtual]

Write the parameters in the given ioHandler.

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 cvr::parametersManager::parametersManager::parameters.


Member Data Documentation

bool cvr::locationMatch::locationMatch::parameters::bidirectional

Bidirectional match.

The match process can be unidirectional, in which the closest descriptor in the second image is searched for each descriptor in the first image (set this attribute to false). It can also be bidirectional, which means that a match is found only if the descriptor of the second image is the closest to the one of the first image and the descriptor in the first image is the closest to the one in the second image.

Note that the bidirectional is slower, but more robust.

Default value: true

int cvr::locationMatch::locationMatch::parameters::bucketSize

Bucket size.

If the match method is set to KdTreeBased then the trees build will use "buckets" of the given size, which means that at each leaf, the given number of elements are stored, implying linear search for that size. The experience tells that setting this value to 1 (a pure tree) is not very efficient, since the time to create the tree will simply be too high. The maximum efficiency is achieved usually with buckets of 16 to 32 elements.

Default value: 32

eMatchType cvr::locationMatch::locationMatch::parameters::matchType

Algorithm used for the match.

You can choose between several algorithms to perform the match. The straightforward method is based on a linear search, while more elaborate methods use a kd-tree. Use the second if the set of locations is too large size.

Default value: LinearSearch

double cvr::locationMatch::locationMatch::parameters::threshold

Threshold distance.

The distance between two descriptors must be less than this threshold. This means, the higher the given value, the greater the number of matches detected. For lower values, just the most similar locations are detected.

Note that the threshold is an absolute value, whose range will depend on the distances between points found by the other classes.

Default value: 1.0


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

Generated on Sun Sep 20 22:08:48 2009 for CVR-Lib by Doxygen 1.5.8