29
$\begingroup$

Cross post here

I have such funny pictures: enter image description here

enter image description here

Very interesting,and you can get all of it 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:

We can get its edge very easily

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

But how to hightlight it on map?

$\endgroup$
  • $\begingroup$ I believe your wording is a bit confusing. Would you like to overlay your image on the map, or would you like to find a street pattern that fits your image? $\endgroup$ – Sham Says Dec 25 '16 at 1:31
  • 1
    $\begingroup$ @ShamSays I suppose he want to find a street pattern similar to this image and highlight it. $\endgroup$ – Wjx Dec 25 '16 at 5:19
  • 1
    $\begingroup$ @yode Interesting question -- it is very probable I will post an answer in the next few days. $\endgroup$ – Anton Antonov Dec 30 '16 at 20:13
  • $\begingroup$ @AntonAntonov Looking forward that. :) $\endgroup$ – yode Dec 31 '16 at 0:29
  • $\begingroup$ @AntonAntonov Will this reward insist on that moment? $\endgroup$ – yode Jan 3 '17 at 12:55

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.