Research Article
An Approach to Generate Spatial Voronoi Treemaps for Points, Lines, and Polygons
Algorithm 4
(a) PixelsTransformation() for an ordinary SVT. (b) PixelsTransformation() for a weighted SVT.
(a) | Input: a set of pixels | Output: a set of pixels | Begin | for ; step 1 until do | if () then | initialize : a set of pixels around | for ; step 1 until do | if ( & ) then | | endif | endfor | | endif | endfor | End | | (b) | Input: a set of pixels | Output: a set of pixels | Begin | for ; step 1 until do | if () then | | if () then | initialize : a set of pixels around | for ; step 1 until do | if ( & ) then | | | | endif | endfor | | endif | endif | endfor | End |
|