OpenCvSharp.Cv2.EqualizeHist C# (CSharp) Method

EqualizeHist() public static method

normalizes the grayscale image brightness and contrast by normalizing its histogram
public static EqualizeHist ( InputArray src, OutputArray dst ) : void
src InputArray The source 8-bit single channel image
dst OutputArray The destination image; will have the same size and the same type as src
return void
        public static void EqualizeHist(InputArray src, OutputArray dst)
        {
            if (src == null)
                throw new ArgumentNullException(nameof(src));
            if (dst == null)
                throw new ArgumentNullException(nameof(dst));
            src.ThrowIfDisposed();
            dst.ThrowIfNotReady();
            NativeMethods.imgproc_equalizeHist(src.CvPtr, dst.CvPtr);
            GC.KeepAlive(src);
            dst.Fix();
        }
        #endregion
Cv2