My Project
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RansacImpl Class Reference

Internal implementation of RANSAC. Please use Ransac or IndexRansac. More...

#include <Ransac.h>

Inheritance diagram for RansacImpl:
IndexRansac< MODEL > Ransac< MODEL, PARAMETER >

Public Member Functions

int estimateRequiredRounds (float success_propability, float inlier_percentage)
 How many rounds are needed for the Ransac to work. More...
 

Protected Member Functions

 RansacImpl (int min_params, int max_params, int sizeof_param, int sizeof_model)
 
int _estimate (void *params, int param_c, int support_limit, int max_rounds, void *model)
 
int _refine (void *params, int param_c, int support_limit, int max_rounds, void *model, char *inlier_mask=NULL)
 
virtual void _doEstimate (void **params, int param_c, void *model)
 
virtual bool _doSupports (void *param, void *model)
 
 RansacImpl (int min_params, int max_params, int sizeof_model)
 
int _estimate (int param_c, int support_limit, int max_rounds, void *model)
 
int _refine (int param_c, int support_limit, int max_rounds, void *model, char *inlier_mask=NULL)
 
virtual void _doEstimate (int *params, int param_c, void *model)
 
virtual bool _doSupports (int param, void *model)
 

Protected Attributes

void ** samples
 
void * hypothesis
 
int min_params
 
int max_params
 
int sizeof_param
 
int sizeof_model
 
int * indices
 

Detailed Description

Internal implementation of RANSAC. Please use Ransac or IndexRansac.

Definition at line 42 of file Ransac.h.

Member Function Documentation

◆ estimateRequiredRounds()

int estimateRequiredRounds ( float  success_propability,
float  inlier_percentage 
)

How many rounds are needed for the Ransac to work.

Computes the required amount of rounds from the estimated inlier percentage and required propability of successfully finding the inlier set.

Parameters
success_propabilityRequired success propability, (range 0..1)
inlier_percentageEstimated amount of inliers in the parameter set, range(0..1).
Returns
The required number of rounds that can be used as max_rounds when calling the estimate method.

Member Data Documentation

◆ indices

int* indices
protected

IndexRansac version

Definition at line 72 of file Ransac.h.


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