Hi
I'm trying to work out what this is doing
int[,] kernel = { { -1, -1, -1 }, { -1, 8, -1 }, { -1, -1, -1 } };
int ksize = kernel.GetLength(0);
What I think is happening is:
The first line declares a dynamic multidimensional array of integers called kernal and puts the values { -1, -1, -1 }, { -1, 8, -1 }, { -1, -1, -1 } in it (3 rows of 3).
The second line declares an int called ksize and puts the length of kernal into it.
But is the length of kernal 3 or 9?
and what is (0) on the kernel.GetLength(0) used for?
mrcw