Package org.opencv.imgproc
Class CLAHE
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.imgproc.CLAHE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CLAHE(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
CLAHE
protected CLAHE(long addr)
-
-
Method Detail
-
__fromPtr__
public static CLAHE __fromPtr__(long addr)
-
apply
public void apply(Mat src, Mat dst)
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
public void setClipLimit(double clipLimit)
Sets threshold for contrast limiting.- Parameters:
clipLimit
- threshold value.
-
getClipLimit
public double getClipLimit()
-
setTilesGridSize
public void setTilesGridSize(Size tileGridSize)
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
public Size getTilesGridSize()
-
collectGarbage
public void collectGarbage()
-
-