类 ThresholdFilter

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

    public class ThresholdFilter
    extends PointFilter
    A filter which performs a threshold operation on an image.
    • 构造器详细资料

      • ThresholdFilter

        public ThresholdFilter()
        Construct a ThresholdFilter.
      • ThresholdFilter

        public ThresholdFilter​(int t)
        Construct a ThresholdFilter.
        参数:
        t - the threshold value
    • 方法详细资料

      • setLowerThreshold

        public void setLowerThreshold​(int lowerThreshold)
        Set the lower threshold value.
        参数:
        lowerThreshold - the threshold value
        另请参阅:
        getLowerThreshold()
      • getLowerThreshold

        public int getLowerThreshold()
        Get the lower threshold value.
        返回:
        the threshold value
        另请参阅:
        setLowerThreshold(int)
      • setUpperThreshold

        public void setUpperThreshold​(int upperThreshold)
        Set the upper threshold value.
        参数:
        upperThreshold - the threshold value
        另请参阅:
        getUpperThreshold()
      • getUpperThreshold

        public int getUpperThreshold()
        Get the upper threshold value.
        返回:
        the threshold value
        另请参阅:
        setUpperThreshold(int)
      • setWhite

        public void setWhite​(int white)
        Set the color to be used for pixels above the upper threshold.
        参数:
        white - the color
        另请参阅:
        getWhite()
      • getWhite

        public int getWhite()
        Get the color to be used for pixels above the upper threshold.
        返回:
        the color
        另请参阅:
        setWhite(int)
      • setBlack

        public void setBlack​(int black)
        Set the color to be used for pixels below the lower threshold.
        参数:
        black - the color
        另请参阅:
        getBlack()
      • getBlack

        public int getBlack()
        Set the color to be used for pixels below the lower threshold.
        返回:
        the color
        另请参阅:
        setBlack(int)
      • filterRGB

        public int filterRGB​(int x,
                             int y,
                             int rgb)
        指定者:
        filterRGB 在类中 PointFilter
      • toString

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