Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineWeightByImageIntensity could be adaptive #719

Open
i-make-robots opened this issue Oct 21, 2023 · 0 comments
Open

LineWeightByImageIntensity could be adaptive #719

i-make-robots opened this issue Oct 21, 2023 · 0 comments
Milestone

Comments

@i-make-robots
Copy link
Contributor

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.

@i-make-robots i-make-robots added this to the 8.0.0 milestone Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant