NrOfTimesToHalveBorderSegments: reducing the amount of points in a border segment (using haar wavelet reduction) will smooth out the quadratic curve more but at a loss of detail. MaximumNumberOfFacets: if there are more facets than the given maximum number, keep removing the smallest facets until the limit is reached RemoveFacetsFromLargeToSmall (true/false): largest to smallest will prevent boundaries from warping the shapes because the smaller facets act as border anchorpoints but can be considerably slower Lowering the value will create more detailed results but might be much harder to actually paint due to their size. RemoveFacetsSmallerThanNrOfPoints: removes any facets that are smaller than the given amount of pixels. The names are also mentioned in the output json that tells you how much % of the area is of that specific color. You can use the color names in the color restrictions above.
Useful if you only have a few colors of paint on hand.ĬolorAliases: map of key/values where the keys are the color names and the values are the rgb colors (as number array).
If no colors are specified no restrictions are applied. An array of rgb values (as number array) or names of colors (reference to color aliases). KMeansColorRestrictions: Specify which colors should be used. KMeansClusteringColorSpace: the color space to apply clustering in Having a bigger value will speed up the clustering but may yield suboptimal clusters. KMeansMinDeltaDifference: the threshold delta distance of the k-means clustering to reach before stopping. KMeansNrOfClusters: the number of colors to quantize the image to This ensures that the same results are generated each time. RandomSeed: the random seed to choose the initial starting points of the k-means clustering algorithm. The settings contain mostly the same settings in the web version: You can change the settings in settings.json or optionally specify a specific settings.json with the -c path_to_settings.json argument. Paint-by-numbers-generator-win.exe -i input.png -o output.svg