picasso icon indicating copy to clipboard operation
picasso copied to clipboard

Alternative method for converting a vectorized/png image into coord

Open tiagobrc opened this issue 3 years ago • 2 comments

Congratulations on making this thought-provoking tool!

I am trying to use it and got stuck on creating my coordinate file. One of the notebooks uses Mathematica. Is there an alternative method? I am trying to download a free trial of Matematica to try the code anyways.

Thanks again.

tiagobrc avatar Oct 05 '21 21:10 tiagobrc

Yes, you can definitely do this is other languages. All that the Mathematica code is doing is taking a black and white image, and finding the coordinates of the black outline.

In python, you can convert an image to black and white with PIL as described here and then select the coordinates of the non-white points (the shape outline) as described here. This should then produce a set of x,y coordinates to use as input.

tarachari3 avatar Oct 05 '21 21:10 tarachari3

Thank you for the fast response. This is very helpful. I will try.

tiagobrc avatar Oct 05 '21 21:10 tiagobrc