public class ToGrayscale extends Object implements Preprocessor
| 构造器和说明 |
|---|
ToGrayscale()
Construct a Grayscale
|
ToGrayscale(int wR,
int wG,
int wB)
Construct a Grayscale
|
public ToGrayscale()
public ToGrayscale(int wR,
int wG,
int wB)
wR - coefficient of red componentwG - coefficient of green componentwB - coefficient of blue componentpublic BufferedImage apply(BufferedImage image, boolean inplace)
Preprocessorapply 在接口中 Preprocessorimage - input imageinplace - attempt to reuse input image or notCopyright © 2019. All rights reserved.