Zhang-Suen thinning algorithm: Difference between revisions

m
Line 228:
for(i=-1;i<=1;i++){
for(j=-1;j<=1;j++){
if(i!=0 &&|| j!=0)
sum+= (imageMatrix[row+i][col+ij]==imagePixel);
}
}
Line 432:
01000000100000000100000000000000
01000000100000001000000000000000
01111110100000001000000000000000
01111111100000001000000000000000
00000001000000000100000000000000
01000001000000000100000011000000
00000000100001000110000110001000
01000001000001100110000110001100
00000000010000000001111000000000
01000000000010000001111000010000
00000000000000000000000000000000
</pre>
Anonymous user