Skip to main content

ImageToSvgConfig

Configuration options for image_to_svg.

This class holds parameters for bilateral filtering, K-means clustering, and SVG generation. All parameters have sensible defaults.

BilateralFilterConfig

Configuration for the bilateral filter used in image_to_svg.

Properties

PropertyTypeDefaultDescription
sigma_rangefloat50.0Standard deviation for range Gaussian (intensity similarity weight)
sigma_spatialfloat3.0Standard deviation for spatial Gaussian (proximity weight)

KMeansConfig

Configuration for the K-means clustering used in image_to_svg.

Properties

PropertyTypeDefaultDescription
kint16Number of clusters to compute. Roughly represents number of unique colors discovered
max_iterint100Maximum number of iterations for the K-means algorithm