Class GenericMorphFunction<T,​P>

  • Type Parameters:
    T - Type of input image
    P - 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 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 result
        neighborMask - used to create a neighbor mask for the morphological change