Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • $\begingroup$ I love "such that I can calculate what color each intersection would be". Sounds like magic :) $\endgroup$ Commented Nov 19, 2014 at 4:04
  • $\begingroup$ @belisarius I have seen image processing magic from you before :) $\endgroup$ Commented Nov 19, 2014 at 4:49
  • 3
    $\begingroup$ Oh! But I was sober that day! I almost remember ... $\endgroup$ Commented Nov 19, 2014 at 4:58
  • $\begingroup$ You could use a binary encoding: assign each shape a colour that has exactly 1 nonzero bit, rasterize each on a black background, then use ImageAdd. But you can only distinguish up to 24 shapes. $\endgroup$ Commented Nov 19, 2014 at 6:40
  • $\begingroup$ Another problem with an image processing approach is that if two edges intersect at a small angle you will get a chain of disconnected pixels: i.sstatic.net/TmEtp.png $\endgroup$ Commented Nov 19, 2014 at 6:45