Class WhiteBlackPointFilter

java.lang.Object
io.scanbot.sdk.imageprocessing.ParametricFilter
io.scanbot.sdk.imageprocessing.WhiteBlackPointFilter

public class WhiteBlackPointFilter extends ParametricFilter
Maps image value channel so that all the pixels darker than the black point are set to 0, all the pixels brighter than the white point are set to 255, and the pixels in between are linearly scaled.
  • Constructor Details

    • WhiteBlackPointFilter

      public WhiteBlackPointFilter(double blackPoint, double whitePoint)
      Constructs WhiteBlackPointFilter with the given params.
      Parameters:
      blackPoint - Fraction of the value channel range that is set to 0. The value should be in the range from 0 to 1. Default is `0.0`.
      whitePoint - Fraction of the value channel range that is not set to 255. The value should be in the range from 0 to 1. Default is `1.0`.
    • WhiteBlackPointFilter

      public WhiteBlackPointFilter()
      Constructs WhiteBlackPointFilter with default parameters.
  • Method Details

    • getBlackPoint

      public double getBlackPoint()
      Getter for blackPoint field. See constructor documentation for more information about the field.
      Returns:
      blackPoint
    • setBlackPoint

      public void setBlackPoint(double blackPoint)
      Setter for blackPoint field. See constructor documentation for more information about the field.
      Parameters:
      blackPoint - Value to set.
    • getWhitePoint

      public double getWhitePoint()
      Getter for whitePoint field. See constructor documentation for more information about the field.
      Returns:
      whitePoint
    • setWhitePoint

      public void setWhitePoint(double whitePoint)
      Setter for whitePoint field. See constructor documentation for more information about the field.
      Parameters:
      whitePoint - Value to set.