Class GenericMorphFunction<T,P>
- java.lang.Object
-
- science.aist.imaging.core.imageprocessing.segmentation.morph.GenericMorphFunction<T,P>
-
- Type Parameters:
T
- Type of input imageP
- Type of output image
- All Implemented Interfaces:
Function<ImageWrapper<T>,ImageWrapper<P>>
,ImageFunction<T,P>
public class GenericMorphFunction<T,P> extends Object implements ImageFunction<T,P>
Generic implementation of a morph function that allows to dilate/erode any foreground colors (not limited to binary!) Use the isBackgroundFunction to determine if a pixel is a foreground or a background pixel.- Since:
- 1.0
- Author:
- Andreas Pointner, Christoph Praschl
-
-
Constructor Summary
Constructors Constructor Description GenericMorphFunction(@NonNull ImageFactory<P> tProvider, int neighborMask)
Constructor that creates a GenericMorphFunction object with a neighbor mask of the given size
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageWrapper<P>
apply(ImageWrapper<T> i)
void
setNeighborMask(ImageWrapper<short[][][]> neighborMask)
sets value of fieldneighborMask
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface science.aist.imaging.api.ImageFunction
andThen, andThenCloseInput, andThenConsumeInput
-
-
-
-
Constructor Detail
-
GenericMorphFunction
public GenericMorphFunction(@NonNull @NonNull ImageFactory<P> tProvider, int neighborMask)
Constructor that creates a GenericMorphFunction object with a neighbor mask of the given size- Parameters:
tProvider
- used to create the resultneighborMask
- used to create a neighbor mask for the morphological change
-
-
Method Detail
-
setNeighborMask
public void setNeighborMask(ImageWrapper<short[][][]> neighborMask)
sets value of fieldneighborMask
- Parameters:
neighborMask
- value of field neighborType- See Also:
neighborMask
-
apply
public ImageWrapper<P> apply(ImageWrapper<T> i)
-
-