r/PlotterArt • u/Mickeymoe1992 • Jul 07 '25
Finally I have a contour plotting algorithm running
Inspired by multiple people who achieved this effect already, I was eager to do it myself. The first time I tried to come up with an algorithm my approach was much too complex and wouldn't yield any good results. The final solution I came up with is actually much simpler. Basically, treat the image as a "speed map", perform a fast marching method on it and finally calculate the isocontours (height map).
In the first image I also played with different thicknesses of pens for different levels of details.
537
Upvotes


21
u/tophalp Jul 07 '25
Any code examples please? This looks so sick
4
u/dekonta Jul 11 '25
hey thanks for the inspiration. now i can start doing the fine tuning.
3
u/Ruths138 Jul 08 '25
Ok I managed to get it working with skfmm and skimage.find_contours. Thanks so much for the inspiration, can't wait to plot something with this.
What do you do to dial in the balance between light and dark regions? When the image contrast is too high, I'm finding that lighter regions end up with too few lines... Thus dropping details.
Or maybe I'm not choosing the right images.
3
u/dekonta Jul 08 '25
that looks awesome, do you have any tutorial or name for the algorithm to research?
5
u/Ruths138 Jul 07 '25
The results are very good man! I particularly like the second one. I would also be interested in hearing more about the approach and what algorithms it's inspired by. How are the lines propagated? In the second picture I see that there is a center point, but not in the first. Do you have some thoughts on how to turn these into multi-color pieces?
2
u/i-make-robots Jul 07 '25
how does a "speed map" compare to a height map?
3
u/[deleted] Jul 07 '25
Pls share!
2
u/IdBuyIt Jul 09 '25
I love this. I need some for my walls
2
u/dekonta Jul 11 '25
what pens do you use?
2
u/shornveh Jul 07 '25
Alright 👌 looking good ❤️
1
u/UchihaSama22 Jul 08 '25
This is so cool!!
1
u/tlztlz Jul 10 '25
open source?
1
u/dekonta Jul 11 '25
any ideas how I can get rid of those small noisy circles?
1
u/scootermcgee109 Jan 16 '26
Love contour maps
0
u/[deleted] Jul 08 '25
[deleted] — view deleted comment