public abstract class DoublePrecisionPointUtil
extends java.lang.Object
| Constructor and Description |
|---|
DoublePrecisionPointUtil() |
| Modifier and Type | Method and Description |
|---|---|
static double |
computePointWiseDifference(java.util.ArrayList<PointND> list1,
java.util.ArrayList<PointND> list2)
Computes the total distance between two list of points.
|
static ScaleRotate |
estimateRotation(java.util.ArrayList<PointND> list1,
java.util.ArrayList<PointND> list2,
double maxAngle,
int iterations)
Estimates an optimal rotation transform to transform list1 onto list2.
|
static java.util.ArrayList<PointND> |
extractCandidatePoints(ij.process.ImageProcessor houghSpace,
double offset)
Extract points from an ImageProcessor which exceed a certain value
|
static java.util.ArrayList<PointND> |
extractClusterCenter(java.util.ArrayList<PointND> pointList,
double distance)
Extracts cluster centers from an ordered List of points.
|
static PointND |
getGeometricCenter(java.util.ArrayList<PointND> list)
Compute the geometric center of a set of points
|
static PointND |
getStandardDeviation(java.util.ArrayList<PointND> list)
Compute the standard deviation of a set of points
|
static java.util.ArrayList<PointND> |
transformPoints(java.util.ArrayList<PointND> list,
Transform t)
Transforms a list of given points and returns them as new instances in a new list of points.
|
public static PointND getGeometricCenter(java.util.ArrayList<PointND> list)
list - the set of pointspublic static PointND getStandardDeviation(java.util.ArrayList<PointND> list)
list - the set of pointspublic static java.util.ArrayList<PointND> extractCandidatePoints(ij.process.ImageProcessor houghSpace, double offset)
houghSpace - the ImageProcessoroffset - the threshold for extractionpublic static java.util.ArrayList<PointND> extractClusterCenter(java.util.ArrayList<PointND> pointList, double distance)
pointList - the list of candidate pointsdistance - the minimal distance between clusterspublic static double computePointWiseDifference(java.util.ArrayList<PointND> list1, java.util.ArrayList<PointND> list2)
list1 - the one listlist2 - the other listpublic static java.util.ArrayList<PointND> transformPoints(java.util.ArrayList<PointND> list, Transform t)
list - the listt - the transformpublic static ScaleRotate estimateRotation(java.util.ArrayList<PointND> list1, java.util.ArrayList<PointND> list2, double maxAngle, int iterations)
list1 - the first list of pointslist2 - the second list of pointsmaxAngle - the maximal angle that is searched (in radians)iterations - the maximal number of iterations per step.