/// <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) { }
/// <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))); }