Module org.scijava.ops.image
Class Quadric
- java.lang.Object
-
- org.scijava.ops.image.stats.regression.leastSquares.Quadric
-
- All Implemented Interfaces:
Function<Collection<Vector3d>,Matrix4d>
public class Quadric extends Object implements Function<Collection<Vector3d>,Matrix4d>
An op that fits a quadratic surface (quadric) into a set of points.The op first solves the quadric that best fits the point cloud by minimising the distance by least squares fitting. It's found by solving a polynomial - the general equation of a quadric. There are no guarantees about the type of the quadric solved, and it can be real or imaginary. The method is sensitive to outlier points.
The op is based on the the implementations of Yury Petrov & KalebKE.
- Author:
- Richard Domander (Royal Veterinary College, London)
- Implementation Note:
- op names='stats.leastSquares'
-
-
Field Summary
Fields Modifier and Type Field Description static intMIN_DATAMinimum number of points in the input collection needed to fit a quadric equation.
-
Constructor Summary
Constructors Constructor Description Quadric()
-
-
-
Field Detail
-
MIN_DATA
public static final int MIN_DATA
Minimum number of points in the input collection needed to fit a quadric equation.- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public Matrix4d apply(Collection<Vector3d> points)
TODO- Specified by:
applyin interfaceFunction<Collection<Vector3d>,Matrix4d>- Parameters:
points-- Returns:
- the outputMatrix
-
-