类 SimplePreprocessor

    • 构造器详细资料

      • SimplePreprocessor

        public SimplePreprocessor()
    • 方法详细资料

      • apply

        public BufferedImage apply​(BufferedImage image,
                                   boolean inplace)
        Perform preprocess operation
        指定者:
        apply 在接口中 Preprocessor
        参数:
        image - input image
        inplace - attempt to reuse input image or not
        返回:
        processed image
      • preprocess

        public abstract void preprocess​(byte[] from,
                                        byte[] to,
                                        int width,
                                        int height)
        Perform preprocess operation
        参数:
        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