|
|
|
|
|
by drones
807 days ago
|
|
I tried making a face; I think I was pretty successful:
aetopjgghghghdfdfdfacnk This method of drawing reminds me of portraits I've seen of "string art" [1], where strings are tied to pins across a board. The detail is not within the strings themselves but in how they intersect. Unfortunately, I couldn't manage this, but I'm sure someone could. Fun project! [1] https://www.etsy.com/au/market/string_art_portrait |
|
The algorithm for that is kind of inverse tomographic reconstruction. https://en.wikipedia.org/wiki/Tomographic_reconstructionm: “Tomographic reconstruction is a type of multidimensional inverse problem where the challenge is to yield an estimate of a specific system from a finite number of projections”.
Here, you want to find projections for an image.
https://en.wikipedia.org/wiki/Focal_plane_tomography: “In radiography, focal plane tomography is tomography (imaging a single plane, or slice, of an object) by simultaneously moving the X-ray generator and X-ray detector so as to keep a consistent exposure of only the plane of interest during image acquisition. This was the main method of obtaining tomographs in medical imaging until the late-1970s”
A simple algorithm would be to give each string a gray scale that’s the average of the gray scales of the area it passes through. Then, at one particular area, the average gray scale of all strings passing through it more or less equals a weighted average of the average gray scale of the entire picture and that of the area in question.
If you know what areas of the picture are more important, you probably can improve on that method a bit by weighing those areas heavier when computing the darkness of each string.
As an alternative to using many differently colored wires, use the computed gray scale as a probability of whether to use a black or a white wire, or as a probability of whether to include that wire.