- java.lang.Object
-
- org.scijava.ops.image.geom.CentroidMesh
-
- All Implemented Interfaces:
Function<net.imglib2.mesh.Mesh,RealLocalizable>
public class CentroidMesh extends Object implements Function<net.imglib2.mesh.Mesh,RealLocalizable>
Generic implementation ofgeom.centroid. Computation based on http://wwwf.imperial.ac.uk/~rn/centroid.pdf.- Author:
- Tim-Oliver Buchholz (University of Konstanz)
- Implementation Note:
- op names='geom.centroid', label='Geometric: Centroid'
-
-
Constructor Summary
Constructors Constructor Description CentroidMesh()
-
-
-
Method Detail
-
apply
public RealLocalizable apply(net.imglib2.mesh.Mesh input)
TODO- Specified by:
applyin interfaceFunction<net.imglib2.mesh.Mesh,RealLocalizable>- Parameters:
input- theMeshinput- Returns:
- the centroid, represented as a
RealLocalizable
-
-