Reference

Table of Contents  ▸  List of Commands  ▸  Filtering  ▸  voronoi◀  vanvliet    |    watermark_fourier  ▶

voronoi

No arguments

Description:

Compute the discrete Voronoi diagram of non-zero pixels in selected images.

Example of use:

$ gmic 400,400 noise 0.2,2 eq 1 +label_fg 0 voronoi[-1] +gradient[-1] xy,1 append[-2,-1] c norm[-1] ==[-1] 0 map[-2] 2,2 mul[-2,-1] normalize[-2] 0,255 dilate_circ[-2] 4 reverse max

Command: 400,400 noise 0.2,2 eq 1 +label_fg 0 voronoi[-1] +gradient[-1] xy,1 append[-2,-1] c norm[-1] ==[-1] 0 map[-2] 2,2 mul[-2,-1] normalize[-2] 0,255 dilate_circ[-2] 4 reverse max