类 ToGrayscale

    • 构造器详细资料

      • ToGrayscale

        public ToGrayscale()
        Construct a Grayscale
      • ToGrayscale

        public ToGrayscale​(boolean linear)
        Construct a Grayscale
        参数:
        linear - linear color space
      • ToGrayscale

        public ToGrayscale​(int wR,
                           int wG,
                           int wB)
        Construct a Grayscale
        参数:
        wR - coefficient of red component
        wG - coefficient of green component
        wB - coefficient of blue component
    • 方法详细资料

      • apply

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