Beispiel #1
0
 /// <summary>
 /// Convert this matrix to image memory layout (if it is not already).
 /// Coordinates of the result start at [0, 0].
 /// </summary>
 public static Matrix <T> ToImage <T>(this Matrix <T> matrix)
 {
     if (matrix.HasImageLayout())
     {
         return(matrix);
     }
     return(matrix.Copy());
 }