Research Article

An Approach to Generate Spatial Voronoi Treemaps for Points, Lines, and Polygons

Algorithm 3

(a) PixelsAssignment() for an ordinary SVT. (b) PixelsAssignment() for a weighted SVT.
(a)
Input: a set of generators , a set of pixels
Output: a set of pixels
Begin
for  ; step 1 until    do
for  ; step 1 until    do
    if () then
    
    
    endif
endfor
endfor
End
(b)
Input: a set of generators , a set of pixels
Output: a set of pixels
Begin
maxweight = max) %Get the maximum weight of
for  ; step 1 until    do
for  ; step 1 until    do
    if () then
    
    
    
    
    endif
endfor
endfor
End