Research Article

Image-Guided Rendering with an Evolutionary Algorithm Based on Cloud Model

Algorithm 2

The rendering algorithm.
Input: The stroke , the current image , the flag buffer .
Output: The new image and the new flag .
(1) Set centre of the brush to .
(2) Find the pixel set PS using the stroke (see Section 3.3.1).
(3) for Each pixel in PS  do
(4) if (the value of this pixel in is not TRUE) then
(5) Update the pixel in the current image as Eq. (15).
(6) if (this pixel is acceptable, that is, ) then
(7) Set the pixel to TRUE in the flag buffer .
(8) end if
(9) end if
(10) end for
(11) return the current image , the flag buffer .