![]() |
University of Murcia, Spain ![]() |
QVPROSAC< Element, Model > Class Template ReferenceImplementation of PROSAC, an extension to RANSAC (see QVRANSAC).
More...
|
Public Member Functions | |
QVPROSAC (const int sampleSetSize, const int minInliers) | |
Constructor for QVPROSAC class. | |
void | addElement (const Element &element, const double preference=0) |
Starts a PROSAC search. |
This class implements PROSAC, a robust statistical model fitting algorithm.
PROSAC is a more sophisticated and efficient version of RANSAC. The latter is described in the documentation of the class QVRANSAC, which is an implementation of that algorithm for the QVision.
PROSAC can handle heuristic information about the probability that a sample data could fit in a valid model. When picking random samples from the observations set, sample data with high heuristic value is more likely to be chosen, increasing the probability of finding a good sample set that would fit into a valid model.
This makes PROSAC to obtain a fitting model generally faster, trying less random subsets than RANSAC. In practice, with an adequate heuristic function for the sample data, PROSAC can be up to 100 times faster than RANSAC.
Usage of the class QVPROSAC is similar to QVRANSAC. The only difference is at the function addElement, which now takes two input parameters: the sample data, and a numeric heuristic value, which will penalize or benefit the sample data at the random selection of the PROSAC algorithm.
The algorithm is programmed to choose with more probability sample data's with a low heuristic value.
Definition at line 276 of file qvsampleconsensus.h.
QVPROSAC< Element, Model >::QVPROSAC | ( | const int | sampleSetSize, | |
const int | minInliers | |||
) | [inline] |
Constructor for QVPROSAC class.
Because QVPROSAC is a pure virtual class, this constructor should only be called from the constructor of its subclasses.
sampleSetSize | size of the subsets s to be used for model fitting. | |
minInliers | minimum number of sample data for a model to fit, to be considered a valid model. |
Definition at line 310 of file qvsampleconsensus.h.
void QVPROSAC< Element, Model >::addElement | ( | const Element & | element, | |
const double | preference = 0 | |||
) | [inline] |
Starts a PROSAC search.
This method will perform a random search over the elements of the observations set, to find a model that fits a given number of elements from that set, specified in the constructor of the RANSAC object.
Definition at line 319 of file qvsampleconsensus.h.