public class DefaultCenterOfGravity<T extends RealType<T>> extends AbstractUnaryFunctionOp<IterableInterval<T>,RealLocalizable> implements Ops.Geometric.CenterOfGravity
Op
computes the center of gravity of a IterableRegion
(Label).SpecialOp.Flavor
NAME
Constructor and Description |
---|
DefaultCenterOfGravity() |
Modifier and Type | Method and Description |
---|---|
RealLocalizable |
calculate(IterableInterval<T> input)
Calculates the output given some input.
|
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
initialize
public RealLocalizable calculate(IterableInterval<T> input)
UnaryFunctionOp
calculate
in interface UnaryFunctionOp<IterableInterval<T extends RealType<T>>,RealLocalizable>
input
- Argument to the functionCopyright © 2014–2022 ImageJ. All rights reserved.