CVR-Lib last update 20 Sep 2009

cvr::locationMatch Class Reference
[Local Feature Processing]

Class locationMatch. More...

#include <cvrLocationMatch.h>

Inheritance diagram for cvr::locationMatch:

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

Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 The parameters for the class locationMatch. More...

Public Types

enum  eMatchType

Public Member Functions

 locationMatch ()
 locationMatch (const parameters &par)
 locationMatch (const locationMatch &other)
virtual ~locationMatch ()
bool apply (const list< location > &locsA, const std::list< dvector > &vctsA, const list< location > &locsB, const std::list< dvector > &vctsB, std::vector< location > &matchedLocsA, std::vector< dvector > &descA, std::vector< location > &matchedLocsB, std::vector< dvector > &descB)
locationMatchcopy (const locationMatch &other)
locationMatchoperator= (const locationMatch &other)
virtual const std::string & name () const
virtual locationMatchclone () const
virtual locationMatchnewInstance () const
const parametersgetParameters () const
bool linearSearch (const list< location > &locsA, const std::list< dvector > &vctsA, const list< location > &locsB, const std::list< dvector > &vctsB, std::vector< location > &matchedLocsA, std::vector< dvector > &descA, std::vector< location > &matchedLocsB, std::vector< dvector > &descB)
bool kdtree (const list< location > &locsA, const std::list< dvector > &vctsA, const list< location > &locsB, const std::list< dvector > &vctsB, std::vector< location > &matchedLocsA, std::vector< dvector > &descA, std::vector< location > &matchedLocsB, std::vector< dvector > &descB)
template<class T , class L >
void convert (const L &theList, std::vector< T > &theVct) const


Detailed Description

Class locationMatch.

This class is used to match the locations on two images, based on the descriptors associated to each location.

This class receives as input the output to any feature extraction functor (e.g. cvr::surfLocalDescriptor).

See also:
locationMatch::parameters.

Member Enumeration Documentation

Types of algorithms to perform the match.


Constructor & Destructor Documentation

cvr::locationMatch::locationMatch (  ) 

Default constructor.

cvr::locationMatch::locationMatch ( const parameters par  ) 

Construct a functor using the given parameters.

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

Copy constructor.

Parameters:
other the object to be copied

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

Destructor.


Member Function Documentation

bool cvr::locationMatch::apply ( const list< location > &  locsA,
const std::list< dvector > &  vctsA,
const list< location > &  locsB,
const std::list< dvector > &  vctsB,
std::vector< location > &  matchedLocsA,
std::vector< dvector > &  descA,
std::vector< location > &  matchedLocsB,
std::vector< dvector > &  descB 
)

Find the matches between the locations and descriptors of two different images.

This method finds the matching locations in two images A and B.

Parameters:
locsA locations of the image A
vctsA descriptors for the locations of image A.
locsB locations of the image B
vctsB descriptors for the locations of image B.
matchedLocsA locations for which a match in image B has been found.
descA descriptors corresponding to the matchedLocsA
matchedLocsB locations for which a match in image A has been found.
descB descriptors corresponding to the matchedLocsB
Returns:
true if apply successful or false otherwise.

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

Returns a pointer to a clone of this functor.

Implements cvr::functor.

template<class T , class L >
void cvr::locationMatch::convert ( const L &  theList,
std::vector< T > &  theVct 
) const [inline]

Convert the two locations/vectors.

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

Copy data of "other" functor.

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

const parameters& cvr::locationMatch::getParameters (  )  const

Returns used parameters.

Reimplemented from cvr::parametersManager.

bool cvr::locationMatch::kdtree ( const list< location > &  locsA,
const std::list< dvector > &  vctsA,
const list< location > &  locsB,
const std::list< dvector > &  vctsB,
std::vector< location > &  matchedLocsA,
std::vector< dvector > &  descA,
std::vector< location > &  matchedLocsB,
std::vector< dvector > &  descB 
)

Search with kd-trees.

bool cvr::locationMatch::linearSearch ( const list< location > &  locsA,
const std::list< dvector > &  vctsA,
const list< location > &  locsB,
const std::list< dvector > &  vctsB,
std::vector< location > &  matchedLocsA,
std::vector< dvector > &  descA,
std::vector< location > &  matchedLocsB,
std::vector< dvector > &  descB 
)

Linear search.

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

Returns the complete name of the functor class.

Implements cvr::functor.

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

Returns a pointer to a new instance of this functor.

Implements cvr::functor.

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

Alias for copy member.

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


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