/// <summary> /// Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization. /// </summary> /// <param name="source">Source image</param> /// <param name="dst">Destination image</param> /// <param name="stream">Use a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).</param> public void Apply(IInputArray source, IOutputArray dst, Stream stream = null) { using (InputArray iaSource = source.GetInputArray()) using (OutputArray oaDst = dst.GetOutputArray()) CudaInvoke.cudaCLAHEApply(_ptr, iaSource, oaDst, stream); }