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)
      • getTilesGridSize

        public Size getTilesGridSize()
      • getClipLimit

        public double getClipLimit()
      • 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.
      • collectGarbage

        public void collectGarbage()
      • setClipLimit

        public void setClipLimit​(double clipLimit)
        Sets threshold for contrast limiting.
        Parameters:
        clipLimit - threshold value.
      • 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.
      • finalize

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