8 public static partial class ArithmeticsOperations
19 throw new ArgumentOutOfRangeException(nameof(Max));
25 float[] Data = M.
Data;
28 for (y = 0; y < h; y++, Index += Skip)
30 for (x = 0; x < w; x++)
52 throw new ArgumentOutOfRangeException(nameof(Max));
61 for (y = 0; y < h; y++, Index += Skip)
63 for (x = 0; x < w; x++)
static void Cap(this Matrix< int > M, int Min, int Max)
Caps the smallest and largest values in a matrix.
static void Cap(this Matrix< float > M, float Min, float Max)
Caps the smallest and largest values in a matrix.
Implements a Matrix, basic component for computations in Image Processing and Computer Vision.
int Height
Height of matrix (number of rows)
T[] Data
Underlying data on which the matrix is defined.
int Width
Width of matrix (number of columns)
int Skip
Number of elements to skip from the right edge in the underlying data to the left edge of the new row...
int Start
Start offset of matrix in underlying data.