public class SauvolaBinarizer extends SimplePreprocessor
| 构造器和说明 |
|---|
SauvolaBinarizer()
Create an binarizer using global settings
|
SauvolaBinarizer(double weight,
int window)
Create an binarizer
|
| 限定符和类型 | 方法和说明 |
|---|---|
double |
getWeight() |
int |
getWindow() |
void |
preprocess(byte[] from,
byte[] to,
int width,
int height)
Perform preprocess operation
|
applypublic SauvolaBinarizer()
public SauvolaBinarizer(double weight,
int window)
weight - weightwindow - side of the sliding windowspublic double getWeight()
public int getWindow()
public 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.