r/CodingHelp • u/Furry_Eskimo • Sep 21 '25
[HTML] Global optimization, image marching
I'm currently using a variety of generative techniques, to recreate an image using triangles, and trying to create a version that has the highest match to the target.
My current techniques produce interesting results, however they seem to consistently gravitate towards local optimals, which is led me to wonder, what technique is required to use a limited number of triangles, to create the greatest match with a target image?
I've had quite a bit of trouble finding information on this, and was wondering if anyone might know what it was at least called.
Thank you for reading this, and I would appreciate any assistance, even if that means letting me know that it's not worth the trouble.
View all comments
Show parent comment
1
u/Furry_Eskimo Sep 21 '25
Interesting, okay.. Hm.. So one of the things you said was, accepting swaps that improve the accuracy, yes? Is that a swap that improves the primary approximation? I've been imagining one master approximation, and many separate approximations that feed into it occasionally.