MarginallyClever / Makelangelo-software

Software for plotters - especially the wall-hanging polargraph also called Makelangelo.

Home Page:http://www.marginallyclever.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LineWeightByImageIntensity could be adaptive

i-make-robots opened this issue · comments

generateOneThickLine scans the length of the line, sampling the values on the original center line only.
Now suppose the maximum thickness of the line is 10 pixels. it could be that one side of the line is light and the other is dark.
The thickness could bend around this to produce a more image-matching effect.

Approach:
in generateOneThickLine, calculate the numPasses as before.
allocate a matrix line.segments.size() rows and numPasses columns. sample each point, probably in a class that has x,y,intensity.
now use this matrix to generateOneThickLinePass.
I think it's only feasible to look for light on the sides of the line. Holes in the middle will be ignored, too many edge cases.