public class NiblackThreshold extends java.lang.Object implements IApplyInPlace
| Constructor and Description |
|---|
NiblackThreshold()
Initialize a new instance of the NiblackThreshold class.
|
NiblackThreshold(double k,
double c)
Initialize a new instance of the NiblackThreshold class.
|
NiblackThreshold(int radius)
Initialize a new instance of the NiblackThreshold class.
|
NiblackThreshold(int radius,
double k,
double c)
Initialize a new instance of the NiblackThreshold class.
|
NiblackThreshold(int radius,
double k,
double c,
Mean.Arithmetic arithmetic)
Initialize a new instance of the NiblackThreshold class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
Mean.Arithmetic |
getArithmetic()
Get Mean arithmetic.
|
double |
getC()
Get parameter C.
|
double |
getK()
Get parameter K.
|
int |
getRadius()
Get Radius.
|
void |
setArithmetic(Mean.Arithmetic arithmetic)
Set Mean arithmetic.
|
void |
setC(double c)
Set parameter C.
|
void |
setK(double k)
Set parameter K.
|
void |
setRadius(int radius)
Set Radius.
|
public NiblackThreshold()
public NiblackThreshold(int radius)
radius - Radius.public NiblackThreshold(double k,
double c)
k - Parameter K.c - Parameter C.public NiblackThreshold(int radius,
double k,
double c)
radius - Radius.k - Parameter K.c - Parameter C.public NiblackThreshold(int radius,
double k,
double c,
Mean.Arithmetic arithmetic)
radius - Radius.k - Parameter K.c - Parameter C.arithmetic - Mean arithmetic.public Mean.Arithmetic getArithmetic()
public void setArithmetic(Mean.Arithmetic arithmetic)
arithmetic - Mean arithmetic.public int getRadius()
public void setRadius(int radius)
radius - Radius.public double getK()
public void setK(double k)
k - K value.public double getC()
public void setC(double c)
c - C value.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.