Class Kernel.GrayScaleFilter

  • All Implemented Interfaces:
    Filter, Serializable
    Enclosing class:
    Kernel

    public static class Kernel.GrayScaleFilter
    extends Kernel
    Kernels whose filter class work with grayscale instead of seperate color channels
    Author:
    Kilian
    See Also:
    Serialized Form
    • Constructor Detail

      • GrayScaleFilter

        public GrayScaleFilter​(double[][] mask)
        Parameters:
        mask - kernel mask
    • Method Detail

      • filter

        public BufferedImage filter​(BufferedImage input)
        Description copied from interface: Filter
        Apply the filter to the input image and return an altered copy
        Specified by:
        filter in interface Filter
        Overrides:
        filter in class Kernel
        Parameters:
        input - the input image to apply the filter on
        Returns:
        the altered image