类 SauvolaBinarizer

    • 构造器详细资料

      • SauvolaBinarizer

        public SauvolaBinarizer()
        Create an binarizer using global settings
      • SauvolaBinarizer

        public SauvolaBinarizer​(double weight,
                                int window)
        Create an binarizer
        参数:
        weight - weight
        window - side of the sliding windows
    • 方法详细资料

      • getWeight

        public double getWeight()
        返回:
        Weight
      • getWindow

        public int getWindow()
        返回:
        side of sliding windows
      • preprocess

        public void preprocess​(byte[] from,
                               byte[] to,
                               int width,
                               int height)
        从类复制的说明: SimplePreprocessor
        Perform preprocess operation
        指定者:
        preprocess 在类中 SimplePreprocessor
        参数:
        from - pixel array of the input image
        to - pixel array of the output image
        width - width of the input image
        height - height of the input image