Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python wrappers #2

Open
AntonBiryukovUofC opened this issue Jun 7, 2020 · 2 comments
Open

Python wrappers #2

AntonBiryukovUofC opened this issue Jun 7, 2020 · 2 comments

Comments

@AntonBiryukovUofC
Copy link

Hello Marc,

I was wondering how difficult it might be to create a Python wrapper for your codes. I have not found solid python-friendly stippling implementations, and would be happy to produce one with some guidance :)

In the end, it would be great to have a stipplize() function with all the dials used as arguments, that would accept something like a "grayscale" numpy array, and spit out the dot coordinates, and sizes.

Do you think you could suggest specific functions in your codes that could be a good entry point ?

Thanks,
Anton.

@morozgrafix
Copy link

+1 on python library

@ghost
Copy link

ghost commented Jan 16, 2021

I'm not the author of the code but I can comment on your question. The stippling algorithm is easy to port, look here:

src/lbgstippling.cpp

however the hardest part, is the fast voronoi computation, as its implementation targets the gpu. You can replace it with a regular voronoi computation, the algorithm will be much slower then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants