Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. i = Import["http://i.stack.imgur.com/Ac8m0.png"];
  2.  
  3. img = Import["http://i.stack.imgur.com/Ac8m0.png"];
  4.  
  5. pts = Table[{x, y}, {x, 65, 598, 33}, {y, 64, 810, 24}];
  6. key = Table[{697, y}, {y, 60, 810, 30}];
  7.  
  8. HighlightImage[img, {Flatten[pts, 1], ImageMarker[key, "Circle"]}]
  9.  
  10. keycols = ImageValue[img, key];
  11.  
  12. Row[RGBColor /@ keycols]
  13.  
  14. nf = Nearest[keycols -> Automatic];
  15.  
  16. data = Map[First[nf@ImageValue[img, #]] &, pts, {2}];
  17.  
  18. Graphics @ Raster[Map[keycols[[#]] &, Transpose[data], {2}]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement