/// <summary> /// Applies White Patch filter for color normalization (Accord.NET function) /// </summary> /// <param name="img">image.</param> /// <param name="inPlace">Apply in place or not. If it is set to true return value can be omitted.</param> /// <returns>Processed image.</returns> public static Bgr <byte>[,] WhitePatch(this Bgr <byte>[,] img, bool inPlace = true) { WhitePatch wp = new WhitePatch(); return(img.ApplyFilter(wp, inPlace)); }
/// <summary> /// Gray World filter for color normalization. /// <para>Accord.NET internal call.</para> /// </summary> /// <param name="img">Image.</param> /// <param name="inPlace">Apply in place or not. If it is set to true return value can be omitted.</param> /// <returns>Processed image.</returns> public static Bgr <byte>[,] GrayWorld(this Bgr <byte>[,] img, bool inPlace = true) { GrayWorld gw = new GrayWorld(); return(img.ApplyFilter(gw, inPlace)); }