I am trying to implement an image stippling algorithm in python, and want to vectorize calculating the density (average luminance) of labelled image regions (Voronoi cells). Currently I’m able to do so using a loop, but this is too computationally intensive for large numbers of regions. How can I vectorize this operation? Answer The problem is not the loop but
Tag: voronoi
Create Voronoi art with rounded region edges
I’m trying to create some artistic “plots” like the ones below: The color of the regions do not really matter, what I’m trying to achieve is the variable “thickness” of the edges along the Voronoi regions (espescially, how they look like a bigger rounded blob where they meet in corners, and thinner at their middle point). I’ve tried by “painting