类 ErodeFilter

  • 所有已实现的接口:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class ErodeFilter
    extends BinaryFilter
    Given a binary image, this filter performs binary erosion, setting all removed pixels to the given 'new' color.
    • 构造器详细资料

      • ErodeFilter

        public ErodeFilter()
    • 方法详细资料

      • setThreshold

        public void setThreshold​(int threshold)
        Set the threshold - the number of neighbouring pixels for dilation to occur.
        参数:
        threshold - the new threshold
        另请参阅:
        getThreshold()
      • getThreshold

        public int getThreshold()
        Return the threshold - the number of neighbouring pixels for dilation to occur.
        返回:
        the current threshold
        另请参阅:
        setThreshold(int)
      • filterPixels

        protected int[] filterPixels​(int width,
                                     int height,
                                     int[] inPixels,
                                     java.awt.Rectangle transformedSpace)
        从类复制的说明: WholeImageFilter
        Actually filter the pixels.
        指定者:
        filterPixels 在类中 WholeImageFilter
        参数:
        width - the image width
        height - the image height
        inPixels - the image pixels
        transformedSpace - the output bounds
        返回:
        the output pixels
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object