August 2018
Beginner
334 pages
10h 19m
English
We will implement the Convolve function:
public static void Convolve(
float[,] matrix,
ref float[,] source,
ref float[,] destination)
{
// next steps
}
int matrixLength = matrix.GetLength(0); int size = (int)(matrixLength - 1) / 2; int height = source.GetLength(0); int width = source.GetLength(1); int I, j, k, m;
for (i = 0; i < width-- size; i++)
{
for (j = 0; j < height-- size; j++)
{
// next steps
}
}
destination[i, j] = 0f; for (k = 0; k < matrixLength; k++) ...
Read now
Unlock full access