A class for finding point correspondences between a lobot::Experiment and a refernce Experiment in a separate thread. More...
#include <Robots/LoBot/metlog/LoCorrFinder.H>
Static Public Member Functions | |
static CorrFinder * | create (const Experiment *, const Dataset &, PointListName, PointMatrix *) |
A class for finding point correspondences between a lobot::Experiment and a refernce Experiment in a separate thread.
This class implements an interface for launching a point correspondence finding algorithm in a separate thread. This correspondence finder's job is to look at a reference Experiment's point list of interest and find the closest points in another Experiment. The resulting list of points is added to a PointMatrix.
Definition at line 90 of file LoCorrFinder.H.
CorrFinder * lobot::CorrFinder::create | ( | const Experiment * | R, | |
const Dataset & | D, | |||
PointListName | L, | |||
PointMatrix * | M | |||
) | [static] |
This class uses the "named constructor" idiom to ensure that clients not create instances of it on the stack. This method is the named constructor (aka factory method).
When clients create correspondence finders, they should supply a reference experiment and the dataset containing all the experiments. Additionally, the correspondence finder also needs to know the point list for which the client is interested in finding point correspondences.
Upon instantiation, this class will automatically launch a new thread to perform the correspondence finding operations. Once it has found the desired correspondences, it will send its results to the point matrix supplied by the client.
NOTE: This named constructor is the only publically accessible thing in this class. Once a correspondence finder object is created, the rest of its work proceeds automatically. Clients can either continue on with their business or choose to wait for all the correspondence finder threads to complete.
Definition at line 65 of file LoCorrFinder.C.