类 Inverter

    • 构造器详细资料

      • Inverter

        public Inverter()
        Construct a ColorInvert
      • Inverter

        public Inverter​(boolean autoDetect)
        Construct a ColorInvert
        参数:
        autoDetect - color will only be inverted when the image seem to be white on black if autoDetect is true, or else color will always be inverted
    • 方法详细资料

      • isAutoDetect

        public boolean isAutoDetect()
        Check if auto detection of white on black is enabled
        返回:
        enabled or not
      • checkWhiteOnBlack

        public boolean checkWhiteOnBlack​(byte[] pixels)
        Check if a image seem to be white on black
        参数:
        pixels - the pixels array of the image
        返回:
        test result
      • 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