Module org.scijava.ops.image
Class WatershedSeededFunction<T extends RealType<T>,B extends BooleanType<B>>
- java.lang.Object
-
- org.scijava.ops.image.image.watershed.WatershedSeededFunction<T,B>
-
- All Implemented Interfaces:
Functions.Arity5<RandomAccessibleInterval<T>,ImgLabeling<Integer,IntType>,Boolean,Boolean,RandomAccessibleInterval<B>,ImgLabeling<Integer,IntType>>
public class WatershedSeededFunction<T extends RealType<T>,B extends BooleanType<B>> extends Object implements Functions.Arity5<RandomAccessibleInterval<T>,ImgLabeling<Integer,IntType>,Boolean,Boolean,RandomAccessibleInterval<B>,ImgLabeling<Integer,IntType>>
The Watershed algorithm segments and labels a grayscale image analogous to a heightmap. In short, a drop of water following the gradient of an image flows along a path to finally reach a local minimum.This Op wraps
WatershedSeededas a Function for convenience.- Author:
- Gabriel Selzer
- Implementation Note:
- op names='image.watershed'
-
-
Constructor Summary
Constructors Constructor Description WatershedSeededFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImgLabeling<Integer,IntType>apply(RandomAccessibleInterval<T> input, ImgLabeling<Integer,IntType> seeds, Boolean useEightConnectivity, Boolean drawWatersheds, RandomAccessibleInterval<B> mask)TODO-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.function.Functions.Arity5
andThen
-
-
-
-
Method Detail
-
apply
public ImgLabeling<Integer,IntType> apply(RandomAccessibleInterval<T> input, ImgLabeling<Integer,IntType> seeds, Boolean useEightConnectivity, Boolean drawWatersheds, RandomAccessibleInterval<B> mask)
TODO- Specified by:
applyin interfaceFunctions.Arity5<RandomAccessibleInterval<T extends RealType<T>>,ImgLabeling<Integer,IntType>,Boolean,Boolean,RandomAccessibleInterval<B extends BooleanType<B>>,ImgLabeling<Integer,IntType>>- Parameters:
input-seeds-useEightConnectivity-drawWatersheds-mask-- Returns:
- the outputLabeling
-
-