I need "Structuring Element" for thinning an image. Structuring Element is a 3 x 3 matrix values of "1" and "0". I have declared a 3x3 array using following line of code in JAVA:
int [][] structuring_element = new int [3][3];
Kindly tell me, what kind of order of "0s" and "1s" should I assign to array? I mean if following is my array for example:
[0 0 0]
[x 1 x]
[1 1 1]
then how I will decide at what place should I put 0 and where to put 1? I have to perform thinning on a 2D gray-scale image. Thanks!