fitplane

sofia_redux.toolkit.image.smooth.fitplane(points)[source]

Fit a plane to distribution of points.

Parameters:
pointsarray_like of float (2, npoints)

Where points[0] are the coordinates in the first dimension and points[1] are the coordinates in the second dimension

Returns:
A point on the plane (point cloud centroid) and the normal