public class Clahe extends java.lang.Object implements IApplyInPlace
This feature can also be applied to global histogram equalization, giving rise to contrast limited histogram equalization (CLHE) which is rarely used in practice.
| Constructor and Description |
|---|
Clahe()
Initialize a new instance of the CLAHE class.
|
Clahe(int blockRadius,
int bins)
Initialize a new instance of the CLAHE class.
|
Clahe(int blockRadius,
int bins,
float slope)
Initialize a new instance of the CLAHE class.
|
Clahe(int blockRadius,
int bins,
float slope,
Grayscale.Algorithm algorithm)
Initialize a new instance of the CLAHE class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
Grayscale.Algorithm |
getAlgorithm()
Get Grayscale algorithm.
|
int |
getBins()
Get the number of histogram bins used for histogram equalization.
|
int |
getBlockRadius()
Get Block radius.
|
float |
getSlope()
Get Slope.
|
void |
setAlgorithm(Grayscale.Algorithm algorithm)
Set Grayscale algorithm.
|
void |
setBins(int bins)
Set the number of histogram bins used for histogram equalization.
|
void |
setBlockRadius(int blockRadius)
Set Block radius.
|
void |
setSlope(float slope)
Set Slope.
|
public Clahe()
public Clahe(int blockRadius,
int bins)
blockRadius - Block radius.bins - Bins.public Clahe(int blockRadius,
int bins,
float slope)
blockRadius - Block radius.bins - Bins.slope - Slope.public Clahe(int blockRadius,
int bins,
float slope,
Grayscale.Algorithm algorithm)
blockRadius - Block radius.bins - Bins.slope - Slope.algorithm - Grayscale algorithm.public int getBlockRadius()
public void setBlockRadius(int blockRadius)
blockRadius - Size of block radius.public int getBins()
public void setBins(int bins)
bins - Number of histogram bins.public float getSlope()
public void setSlope(float slope)
slope - Slope.public Grayscale.Algorithm getAlgorithm()
public void setAlgorithm(Grayscale.Algorithm algorithm)
algorithm - Grayscale algorithm.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.