Anonymous user
Zhang-Suen thinning algorithm: Difference between revisions
m
→{{header|Mathematica}}
Line 962:
<lang Mathematica>nB[mat_] := Delete[mat // Flatten, 5] // Total;
nA[mat_] := Module[{l
l = Flatten[mat][[{2, 3, 6, 9, 8, 7, 4, 1, 2}]];
Partition[l, 2, 1]]]
iW1[mat_] :=
|