CircleFit.jl

Fitting circles to 2D data points.
Author feanor12
Popularity
5 Stars
Updated Last
4 Months Ago
Started In
August 2020

CircleFit.jl

Build Status Coverage

Circle fitting using Kåsa's method

Example:

# import library
using CircleFit
# generate test data
r = 5
x0 = 2
y0 = 4.5
x = r.*[-1.0,0,0,1] .+ x0
y = r.*[0.0,1,-1,0] .+ y0
# fit
x0,y0,radius = circfit(x,y)
#(2.0, 4.499999999999999, 5.0)

Non optimized implementations:

  • Method by Taubin CircleFit.taubin(x,y)
  • Method by Pratt CircleFit.pratt(x,y)