Group Abstract Group Abstract

Message Boards Message Boards

Find a street pattern that fits a specific edge on a map?

Posted 9 years ago

Another crossed post qeustion here.It is very popular from the situation of vote,but I get none response.

I have such funny pictures:

enter image description here

enter image description here

Very interesting,and you can get all sample image by this code:

Uncompress[FromCharacterCode[Flatten[ImageData[Import[#], 
      "Byte"]]]] & /@ {"http://i.stack.imgur.com/YN3L5.png", 
  "http://i.stack.imgur.com/MVnco.png", 
  "http://i.stack.imgur.com/kzwJ5.png", 
  "http://i.stack.imgur.com/Iderf.png"}

Well,since the Mathematica have all of the map data,I think it can do this,too.Suppose I have such picture:

enter image description here

We can get its edge very easily

img = Import["https://i.stack.imgur.com/aEQWP.jpg"];
Binarize[GradientFilter[img, 2], .5]

enter image description here

But how to hightlight it on map like those sample image?

POSTED BY: Yode Japhe
2 Replies
POSTED BY: Vitaliy Kaurov
Attachments:
POSTED BY: Benjamin Goodman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard