- java.lang.Object
-
- org.scijava.ops.image.geom.CentroidPolygon
-
- All Implemented Interfaces:
Function<Polygon2D,RealLocalizable>
public class CentroidPolygon extends Object implements Function<Polygon2D,RealLocalizable>
Generic implementation ofgeom.centroid.- Author:
- Daniel Seebacher (University of Konstanz)
- Implementation Note:
- op names='geom.centroid', label='Geometric: Center of Gravity'
-
-
Constructor Summary
Constructors Constructor Description CentroidPolygon()
-
-
-
Method Detail
-
apply
public RealLocalizable apply(Polygon2D input)
TODO- Specified by:
applyin interfaceFunction<Polygon2D,RealLocalizable>- Parameters:
input-- Returns:
- the centroid, as a
RealLocalizable
-
-