Package org.opencv.imgproc
Class CLAHE
java.lang.Object
org.opencv.core.Algorithm
org.opencv.imgproc.CLAHE
public class CLAHE extends Algorithm
Base class for Contrast Limited Adaptive Histogram Equalization.
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
CLAHE(long addr)
-
Method Summary
Modifier and Type Method Description static CLAHE
__fromPtr__(long addr)
void
apply(Mat src, Mat dst)
Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.void
collectGarbage()
protected void
finalize()
double
getClipLimit()
Size
getTilesGridSize()
void
setClipLimit(double clipLimit)
Sets threshold for contrast limiting.void
setTilesGridSize(Size tileGridSize)
Sets size of grid for histogram equalization.Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
Method Details
-
__fromPtr__
-
apply
Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.- Parameters:
src
- Source image of type CV_8UC1 or CV_16UC1.dst
- Destination image.
-
setClipLimit
Sets threshold for contrast limiting.- Parameters:
clipLimit
- threshold value.
-
getClipLimit
-
setTilesGridSize
Sets size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles.- Parameters:
tileGridSize
- defines the number of tiles in row and column.
-
getTilesGridSize
-
collectGarbage
-
finalize
-