Objective: I want to create random non-overlapping irregular rounded shapes (contours) on a 2D plane, similar to a sandstone microstructure as shown below, to perform an oil flooding experiment using computer vision. Approach: I have previously done a similar thing but with circular shapes instead of random shapes. The result is as below. Also, I am aware of the programming
Tag: bezier
Create random shape/contour using matplotlib
I am trying to generate an image of a random contour using python but I couldn’t find an easy way to do it. Here is an example sort of what I want: Initially I tought of doing it using matplotlib and gaussian functions, but I could not even get close to the image I showed. Is there a simple way