This program generates random black on white silhouettes. It also indicates points of maximum curvature on the boundary of the silhouette.
Currently, triplets of points are randomly generated from a unit circle. The triplets describe what is presumably a quadratic curve with the middle point being the point of maximum curvature. For the time being all middle points are points of concavity.
There's a couple of adjustments coming (time permitting)
- Allow points of convexity
- Use quadratic bezier curves instead of parametric splines
- Neater code
Not all outputs are 'neat' -- very rarely, curves will intersect.
This is part of a larger project based on the Theory of Visual Parts by Donald Hoffman.
$ make all
Usage: python script.py <number_of_images> <number_of_points> <output_directory>
e.g.
$ python3 main.py 10 10 out
Contributions are welcome. If you would like to contribute please follow these steps:
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
This project is licensed under the Apache License.