ransac

package module
Version: v0.0.0-...-2b0d443 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2017 License: MIT Imports: 3 Imported by: 0

README

ransac

RANSAC implementation written in Go

Checkout ransac_test.go for usage.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Problem

type Problem struct {
	// contains filtered or unexported fields
}

Problem is the formulation of the ransac problem.

func (*Problem) Estimate

func (p *Problem) Estimate(maxIterations, sampleSize int, inliersRatioLimit float64, maxError float64, improveWithConsensusSet bool) (*mat64.Vector, []*mat64.Vector, []*mat64.Vector, float64)

Estimate does the actual work of fitting.

func (*Problem) SetData

func (p *Problem) SetData(data []*mat64.Vector)

SetData sets the function, which sets the dataset.

func (*Problem) SetModel

func (p *Problem) SetModel(fn calcModel)

SetModel sets a function which describes the model.

func (*Problem) SetModelError

func (p *Problem) SetModelError(fn calcError)

SetModelError sets the function, which calculates the error.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to