-1

I want to know how to convert (using Python) an image into a hole-pattern grid image, like this:

I want to generate a resulting image like the one as shown there in the preview made with holes - filled circles.

https://www.cadstudio.cz/img/ext/boreimage1.png

Braian
  • 93
  • 7
  • 4
    Downscale your grayscale image to 32x32. Then, draw circles on a new image corresponding for each pixel in your downsized one. Set each circle's radius according to the value of the pixel in the downsized image. – Blender Feb 02 '18 at 20:45

1 Answers1

2

This is a referred to as Halftone (dotted) i think. Here's a related Thread which talks about image processing: Halftone Images In Python

Seems like somebody already wrote something in python referring to that linked thread here is the git: https://github.com/philgyford/python-halftone

Nidus
  • 56
  • 4
  • Thanks, I will find it with that definition then. – Braian Feb 02 '18 at 21:19
  • It worked just great, now I'm trying to center the dots, I asked for help at that same post https://stackoverflow.com/a/48609766/439381 . Thanks. – Braian Feb 04 '18 at 15:36