4-connect/8-connect Line Converter

Step along 4-connect line replacing non 8-connect pixels with either a selected colour or the highest ranked neighbour not the line colour or;
step along 8-connect line filling 4-connect pixels with a selected colour, selecting pixel in order to maximise either straightness or smoothness.

No comments: