delegate TModel | Delegate for generating a model from a pair of samples, represented by their indices. |
delegate float | Delegate for evaluating the agreement score of a model with respect to the entire dataset. |
Initializes a new instance of the RandomSampleConsensus class. | |
TModel | Calculates the best fitting model based on the RANSAC algorithm. |
delegate TModel Oculus.Interaction.RandomSampleConsensus< TModel >.GenerateModel ( int index1, int index2 ) |
---|
Delegate for generating a model from a pair of samples, represented by their indices. Parameters index1 The first sample index. index2The second sample index. Returns A model generated from the provided indices. |
delegate float Oculus.Interaction.RandomSampleConsensus< TModel >.EvaluateModelScore ( TModel model, TModel modelSet ) |
---|
Delegate for evaluating the agreement score of a model with respect to the entire dataset. Parameters model The model to be evaluated. modelSetThe set of all generated models for comparison. Returns The score representing the model's agreement with the data. |
Oculus.Interaction.RandomSampleConsensus< TModel >.RandomSampleConsensus ( int dataPoints, int exclusionZone ) |
---|
Initializes a new instance of the RandomSampleConsensus class. Parameters dataPoints The total number of sample points. exclusionZoneThe threshold to avoid selecting samples too close to each other. |
TModel Oculus.Interaction.RandomSampleConsensus< TModel >.FindOptimalModel ( GenerateModel modelGenerator, EvaluateModelScore modelScorer ) |
---|
Calculates the best fitting model based on the RANSAC algorithm. Parameters modelGenerator The function to generate models from data points. modelScorerThe function to evaluate the agreement score of a model. Returns The model that best fits the data according to the RANSAC algorithm. |