Modifier and Type | Field and Description |
---|---|
private PointCloud |
N |
Constructor and Description |
---|
LinearTimeMedian(PointCloud points) |
Modifier and Type | Method and Description |
---|---|
Jcg.geometry.Point_d |
findMedian(int cutDim)
Compute the median of a set of points (linear median)
|
private Jcg.geometry.Point_d |
findMedianArray(Jcg.geometry.Point_d[] buffer,
int cutDim)
Compute the median of a small set of points (typically, up to 5 elements)
|
private PointCloud N
public LinearTimeMedian(PointCloud points)
public Jcg.geometry.Point_d findMedian(int cutDim)
findMedian
in interface Median
cutDim
- indicates the coordinates to be comparedprivate Jcg.geometry.Point_d findMedianArray(Jcg.geometry.Point_d[] buffer, int cutDim)
buffer
- the array containing input pointscutDim
- the coordinates to be compared