Tw1ddle / geometrize

:white_square_button: Geometrize is a desktop app that geometrizes images into geometric primitives

Home Page:https://www.geometrize.co.uk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add shape limit option

Pichu0102 opened this issue · comments

An option to stop once a certain number of shapes has been reached would be nice.

Will add that soon. Probably by adding an scriptable stop condition, with a "stop if shape count >= n" as one of the preset scripts.

Hey, this is implemented! There's now a "Stop Conditions" tab next to the "Task Settings" and "Exporters" tabs when geometrizing an image.

This tab has a shape limit option and way to script custom stop conditions, will be in the latest automated builds soon: https://github.com/Tw1ddle/geometrize-installer#development-builds

Looks like this:

What is the difference between the Max Shape Count and the Custom Stop Condition?

In theory you could write other conditions for stopping the process, like if you reach a certain similarity to the desired image. I haven't documented how to do that yet though (or even tried it myself).

I just allowed mine to up to 29,000+ shapes on a 1,200x 675 target image, when it was done, I almost couldn't tell the difference because it had pretty much recreated the image :)