/// <summary> /// Executes specified filter on an image (without using parallel processor). /// </summary> /// <param name="img">Image.</param> /// <param name="filter">AForge <see cref="BaseInPlaceFilter"/>.</param> /// <param name="inPlace">Execute in place or not. Please use this switch correctly as some filters may not be processed correctly.</param> public static Image <TColor, TDepth> ApplyFilter <TColor, TDepth>(this Image <TColor, TDepth> img, BaseInPlaceFilter filter, bool inPlace = false) where TColor : IColor where TDepth : struct { return(ApplyFilter <TColor, TDepth, BaseInPlaceFilter>(img, filter, inPlace)); }
/// <summary> /// Executes specified filter on an image (without using parallel processor). /// </summary> /// <param name="img">Image.</param> /// <param name="filter">AForge <see cref="BaseInPlaceFilter"/>.</param> /// <param name="inPlace">Execute in place or not. Please use this switch correctly as some filters may not be processed correctly.</param> public static TColor[,] ApplyFilter <TColor>(this TColor[,] img, BaseInPlaceFilter filter, bool inPlace = false) where TColor : struct, IColor { return(ApplyFilter <TColor, BaseInPlaceFilter>(img, filter, inPlace)); }