Class EdgeFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class EdgeFilter
    extends WholeImageFilter
    An edge-detection filter.
    • Field Detail

      • R2

        public static final float R2
      • ROBERTS_V

        public static final float[] ROBERTS_V
      • ROBERTS_H

        public static final float[] ROBERTS_H
      • PREWITT_V

        public static final float[] PREWITT_V
      • PREWITT_H

        public static final float[] PREWITT_H
      • SOBEL_V

        public static final float[] SOBEL_V
      • SOBEL_H

        public static float[] SOBEL_H
      • FREI_CHEN_V

        public static final float[] FREI_CHEN_V
      • FREI_CHEN_H

        public static float[] FREI_CHEN_H
      • vEdgeMatrix

        protected float[] vEdgeMatrix
      • hEdgeMatrix

        protected float[] hEdgeMatrix
    • Constructor Detail

      • EdgeFilter

        public EdgeFilter()
    • Method Detail

      • setVEdgeMatrix

        public void setVEdgeMatrix​(float[] vEdgeMatrix)
      • getVEdgeMatrix

        public float[] getVEdgeMatrix()
      • setHEdgeMatrix

        public void setHEdgeMatrix​(float[] hEdgeMatrix)
      • getHEdgeMatrix

        public float[] getHEdgeMatrix()
      • filterPixels

        protected int[] filterPixels​(int width,
                                     int height,
                                     int[] inPixels,
                                     java.awt.Rectangle transformedSpace)
        Description copied from class: WholeImageFilter
        Actually filter the pixels.
        Specified by:
        filterPixels in class WholeImageFilter
        Parameters:
        width - the image width
        height - the image height
        inPixels - the image pixels
        transformedSpace - the output bounds
        Returns:
        the output pixels
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object