Zhang-Suen thinning algorithm: Difference between revisions

Extended range of D entry
(Shorter but equally strong D entry)
(Extended range of D entry)
Line 133:
}
 
if (image1.nx <= 3 || image1.ny <= 3)
return image1;
auto image2 = Img.fromData(image1.image.dup, image1.nx, image1.ny);