Module org.scijava.ops.image
Class DefaultContour<B extends BooleanType<B>>
- java.lang.Object
-
- org.scijava.ops.image.geom.geom2d.DefaultContour<B>
-
- All Implemented Interfaces:
BiFunction<RandomAccessibleInterval<B>,Boolean,Polygon2D>
public class DefaultContour<B extends BooleanType<B>> extends Object implements BiFunction<RandomAccessibleInterval<B>,Boolean,Polygon2D>
Generic implementation ofgeom.contour. This implementation assumes that foreground-pixels are 'true' and background-pixels are 'false'.- Author:
- Jonathan Hale (University of Konstanz), Daniel Seebacher (University of Konstanz), Tim-Oliver Buchholz (University of Konstanz)
- Implementation Note:
- op names='geom.contour'
-
-
Constructor Summary
Constructors Constructor Description DefaultContour()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Polygon2Dapply(RandomAccessibleInterval<B> input, Boolean useJacobs)TODO-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
apply
public Polygon2D apply(RandomAccessibleInterval<B> input, Boolean useJacobs)
TODO- Specified by:
applyin interfaceBiFunction<RandomAccessibleInterval<B extends BooleanType<B>>,Boolean,Polygon2D>- Parameters:
input- the input imageuseJacobs- Set this flag to use refined Jacobs stopping criteria- Returns:
- the contour
-
-