help、How do I turn curves into straight lines (rectangles) and details inside rectangles as well

this picture 28f.bmp (330.1 KB)

i want to become
test_map.bmp (48.5 KB)
how should i can do? thanks!!

Opening and closing operations might simplify details of about the structuring element size, but to achieve what you are requesting, it might not be enough. Perhaps read a bit about shape and line simplification.

1 Like

ok , thank you very much, i am trying :blush: