From 8-connected to 4-connected lines
Posted: 2012-06-20T17:24:31-07:00
Hello,
Is there a quick way to convert 8-connected lines to 4-connected lines? I tried with Thicken, HMT, but to no avail. I have to transform a bunch of binary images containing 8-conn edges so I can use a program that only accepts 4-conn lines (connected components, not available yet on IM). An alternative is to thicken the 8-conn lines and then thin with Skeleton:1 or something similar to obtain the desired 4-conn lines. But if I can avoid this more expensive route, that would be much preferred. Any suggestions?
Thanks,
- Alex
Is there a quick way to convert 8-connected lines to 4-connected lines? I tried with Thicken, HMT, but to no avail. I have to transform a bunch of binary images containing 8-conn edges so I can use a program that only accepts 4-conn lines (connected components, not available yet on IM). An alternative is to thicken the 8-conn lines and then thin with Skeleton:1 or something similar to obtain the desired 4-conn lines. But if I can avoid this more expensive route, that would be much preferred. Any suggestions?
Thanks,
- Alex