Class CLAHE


  • public class CLAHE
    extends Algorithm
    Base class for Contrast Limited Adaptive Histogram Equalization.
    • 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()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class Algorithm
        Throws:
        java.lang.Throwable