Skip to content

Repository for weighted Voronoi stippling image processing, creating sketch-like effects by distributing points based on brightness. Customize parameters for desired visual effects.

Notifications You must be signed in to change notification settings

kamil-janusz-kalinowski/ImageWeightedVoronoiStipplingJS

Repository files navigation

BreadcrumbsImageWeightedVoronoiStipplingJS

The repository contains a complete code implementing image processing using the "weighted Voronoi stippling" method. This technique involves placing points on the image in such a way that their density corresponds to the brightness of the respective area. The brighter the area, the more points will be assigned to it, creating smooth transitions and details.

Weighted Voronoi stippling is a visualization technique that aims to create an effect similar to hand-drawn sketches by distributing points on an image based on its brightness.

image

Preview of HTML

You can check result here.

Currently, there is no option to modify parameters directly from the browser interface. Just drag and drop image from your folder. Therefore, it is recommended to use images with lower resolutions for optimal effects.

Parameters:

The repository also provides the ability to modify various parameters, such as the number of points or flags determining the color display method. Below are the variables that users can modify to customize the effect to their preferences:

numPoints: the number of points generated for Voronoi stippling.

isColorDisp: a flag indicating whether colors are displayed.

radiusDot: an array containing the minimum and maximum radius of the points.

brightnessThreshold: the brightness threshold after which a point is created.

doInversion: a flag indicating whether to invert the image's brightness.

rescale_factor: scaling factor.

move_factor: point movement factor.

This allows users to experiment with different settings to achieve the desired visual effect for their images.

About

Repository for weighted Voronoi stippling image processing, creating sketch-like effects by distributing points based on brightness. Customize parameters for desired visual effects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published