August 2018
Beginner
334 pages
10h 19m
English
The following ConvolveDriver function helps us iterate using the Convolve function implemented previously:
public static void ConvolveDriver(
float[,] matrix,
ref float[,] source,
ref float[,] destination,
int iterations)
{
// next steps
}
float[,] map1; float[,] map2; int i;
if (iterations % 2 == 0)
{
map1 = source;
map2 = destination;
}
else
{
destination = source;
map1 = destination;
map2 = source;
}
for (i = 0; i < iterations; i++) { Convolve(matrix, ref source, ref destination); float[,] ...Read now
Unlock full access