
#Image vectorizer profile simple software#
This is free and unencumbered software released into the public domain.Īnyone is free to copy, modify, publish, use, compile, sell, orĭistribute this software, either in source code form or as a compiledīinary, for any purpose, commercial or non-commercial, and by any
#Image vectorizer profile simple license#
See Process overview and Ideas for improvement License The Unlicense / PUBLIC DOMAIN Quadratic spline control point radius, if this is greater than zero, small circles and lines will be drawn in the SVG. Straight line control point radius, if this is greater than zero, small circles will be drawn in the SVG. 1f is on, 0f is off.Įnable or disable SVG descriptions. 1f means rounded to 1 decimal place like 7.3 3f means rounded to 3 places, like 7.356Įnable or disable SVG viewBox. Rounding coordinates to a given decimal place. RGBA delta treshold for selective Gaussian blur preprocessing.Įvery coordinate will be multiplied with this, to scale the SVG. Set this to 1f.5f for selective Gaussian blur preprocessing. Number of colors to use on palette if pal object is not defined.Ĭolor quantization will randomize a color if fewer pixels than (total pixels*mincolorratio) has it.Ĭolor quantization will be repeated this many times.

:) Options Option nameĮdge node paths shorter than this will be discarded for noise reduction.Įnable or disable color sampling. There are more functions for advanced users, read the source if you are interested. ImageData /*read the source for details*/ IndexedImage /*read the source for details*/ String filename, HashMap options /*can be null*/, byte palette /*can be null*/

ImageData imgd, HashMap options /*can be null*/, byte palette /*can be null*/ put( "blurdelta", 20f) // smaller than this RGB difference will be blurred // Palette // This is an example of a grayscale palette // please note that signed byte values will be converted to in the getsvgstring function byte palette = new byte įor( int colorcnt= 0 colorcnt options /*can be null*/, byte palette /*can be null*/īufferedImage image, HashMap options /*can be null*/, byte palette /*can be null*/ put( "blurradius", 0f) // 0f means deactivated 1f. put( "viewbox", 0f) // 1f means true 0f means false: fixed width and height // Selective Gauss Blur options. put( "desc", 1f) // 1f means true 0f means false: SVG descriptions deactivated options. put( "roundcoords", 1f) // 1f means rounded to 1 decimal places, like 7.3 3f means rounded to 3 places, like 7.356 etc. put( "colorsampling", 1f) // 1f means true 0f means false: starting with generated palette options. Options HashMap options = new HashMap() Warning: if the outfilename parameter is not specified, then this will overwrite. background field is removed from the results of color quantization.colorquantization() needs now only imgd, palette and options as parameters.getsvgstring() needs now only IndexedImage (tracedata) and options as parameters.


This can filter noise and improve quality.
