示例#1
0
 /// <summary>
 ///   Constructs a new Blend filter.
 /// </summary>
 ///
 /// <param name="overlayImage">The overlay image (also called the anchor).</param>
 ///
 public Blend(Bitmap overlayImage)
     : this(Matrix.Identity(3), overlayImage)
 {
 }
示例#2
0
 /// <summary>
 ///   Creates a centering matrix of size n x n in the form (I - 1n)
 ///   where 1n is a matrix with all entries 1/n.
 /// </summary>
 public static double[,] Centering(int size)
 {
     return(Matrix.Identity(size).Subtract(Matrix.Create(size, 1.0 / size)));
 }