How can I get the coordinates of an image, and make Mathematica draw the image from the coordinates found? I am interested in just the outlines of the regions.
Here is an example of the kinds of images I'd like to process.
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityHow can I get the coordinates of an image, and make Mathematica draw the image from the coordinates found? I am interested in just the outlines of the regions.
Here is an example of the kinds of images I'd like to process.
Click on your figure. Then a set of graphics tools will appear beneath your figure. Use the Coordinates Tool
. One by one, click on the corners of the region you seek. Then use the window below to Copy Coordinates
. Here the ones I get for the front W face of your figure:
{{72.5`, 507.5`}, {70.5`, 158.5`}, {135.5`, 140.5`}, {136.5`,
484.5`}, {209.5`, 459.5`}, {208.5`, 120.5`}, {280.5`,
98.5`}, {282.5`, 437.5`}, {350.5`, 425.5`}, {347.5`, 7.5`}, {6.5`,
108.5`}, {7.5`, 530.5`}, {72.5`, 507.5`}}
Then merely plot them:
Graphics[{Blue,
Polygon@{{72.5`, 507.5`}, {70.5`, 158.5`}, {135.5`,
140.5`}, {136.5`, 484.5`}, {209.5`, 459.5`}, {208.5`,
120.5`}, {280.5`, 98.5`}, {282.5`, 437.5`}, {350.5`,
425.5`}, {347.5`, 7.5`}, {6.5`, 108.5`}, {7.5`, 530.5`}, {72.5`,
507.5`}}}]
Of course, you can repeat this for each face of your figure, for instance with the S:
If you just want the "skeleton" our outline, use Line
instead of Polygon
: