public class DefaultContour<B extends BooleanType<B>> extends AbstractUnaryFunctionOp<RandomAccessibleInterval<B>,Polygon2D> implements Contingent, Ops.Geometric.Contour
geom.contour
.
This implementation assumes that foreground-pixels are 'true' and
background-pixels are 'false'.SpecialOp.Flavor
NAME
Constructor and Description |
---|
DefaultContour() |
Modifier and Type | Method and Description |
---|---|
Polygon2D |
calculate(RandomAccessibleInterval<B> input)
Calculates the output given some input.
|
boolean |
conforms()
True if the contingency holds; i.e., the current circumstances conform to
the contingency's requirements.
|
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 Polygon2D calculate(RandomAccessibleInterval<B> input)
UnaryFunctionOp
calculate
in interface UnaryFunctionOp<RandomAccessibleInterval<B extends BooleanType<B>>,Polygon2D>
input
- Argument to the functionpublic boolean conforms()
Contingent
conforms
in interface Contingent
Copyright © 2014–2022 ImageJ. All rights reserved.