public class Inverter extends SimplePreprocessor
| 构造器和说明 |
|---|
Inverter()
Construct a ColorInvert
|
Inverter(boolean autoDetect)
Construct a ColorInvert
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkWhiteOnBlack(byte[] pixels)
Check if a image seem to be white on black
|
boolean |
isAutoDetect()
Check if auto detection of white on black is enabled
|
void |
preprocess(byte[] from,
byte[] to,
int width,
int height)
Perform preprocess operation
|
applypublic Inverter()
public Inverter(boolean autoDetect)
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
invertedpublic boolean isAutoDetect()
public boolean checkWhiteOnBlack(byte[] pixels)
pixels - the pixels array of the imagepublic void preprocess(byte[] from,
byte[] to,
int width,
int height)
SimplePreprocessorpreprocess 在类中 SimplePreprocessorfrom - pixel array of the input imageto - pixel array of the output imagewidth - width of the input imageheight - height of the input imageCopyright © 2019. All rights reserved.