Exemplo n.º 1
0
 /// <summary>
 /// Executes specified filter on an image (without using parallel processor).
 /// <see cref="BaseUsingCopyPartialFilter"/> must copy an image if in place operation is requested, so it was decided that in-place filtering is not allowed.
 /// </summary>
 /// <param name="img">Image.</param>
 /// <param name="filter">AForge <see cref="BaseUsingCopyPartialFilter"/>.</param>
 public static Image <TColor, TDepth> ApplyFilter <TColor, TDepth>(this Image <TColor, TDepth> img, BaseUsingCopyPartialFilter filter)
     where TColor : IColor
     where TDepth : struct
 {
     return(ApplyFilter <TColor, TDepth, BaseUsingCopyPartialFilter>(img, filter, false));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Executes specified filter on an image (without using parallel processor).
 /// <see cref="BaseUsingCopyPartialFilter"/> must copy an image if in place operation is requested, so it was decided that in-place filtering is not allowed.
 /// </summary>
 /// <param name="img">Image.</param>
 /// <param name="filter">AForge <see cref="BaseUsingCopyPartialFilter"/>.</param>
 public static TColor[,] ApplyFilter <TColor>(this TColor[,] img, BaseUsingCopyPartialFilter filter)
 where TColor : struct, IColor
 {
     return(ApplyFilter <TColor, BaseUsingCopyPartialFilter>(img, filter, false));
 }