scilpy.maths package
scilpy.maths.utils module
- scilpy.maths.utils.fit_circle_planar(pts, dist_w)[source]
Fitting a plane by SVD for the mean-centered data.
- Parameters:
pts (np.ndarray) – The coordinates.
dist_w (str) – One of [‘lin_up’, ‘lin_down’, ‘exp’, ‘inv’, ‘log’].
- Returns:
pts_recentered (np.ndarray) – The fitted coordinates.
radius (float) – The radius of the circle.