public class CentroidPolygon extends AbstractUnaryFunctionOp<Polygon2D,RealLocalizable> implements Ops.Geometric.Centroid
geom.centroid
.SpecialOp.Flavor
NAME
Constructor and Description |
---|
CentroidPolygon() |
Modifier and Type | Method and Description |
---|---|
RealLocalizable |
calculate(Polygon2D input)
Calculates the output given some input.
|
void |
initialize()
Initializes the object.
|
in, out, run, setInput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ops, setEnvironment
calculate, getIndependentInstance, run
run
candidates, filterArity, op
public void initialize()
Initializable
initialize
in interface Initializable
public RealLocalizable calculate(Polygon2D input)
UnaryFunctionOp
calculate
in interface UnaryFunctionOp<Polygon2D,RealLocalizable>
input
- Argument to the functionCopyright © 2014–2022 ImageJ. All rights reserved.