Zhang-Suen thinning algorithm: Difference between revisions

Better patch for D entry
(A patch in the D entry)
(Better patch for D entry)
Line 118:
assert(image1.image.all!(x => x == 0 || x == 1));
} out(result) {
//assert(result.nx == image1.nx && result.ny == image1.ny);
assert(result.image.all!(x => x == 0 || x == 1));
assert(result.nx == image1.nx && result.ny == image1.ny);
//assert(result.image.all!(x => x == Img.black || x == Img.white));
assert(result.image.all!(x => x == 0 || x == 1));
} body {
/// True if inf <= x <= sup.