Research Article

Artificial Mosaic Generation with Gradient Vector Flow and Tile Cutting

Algorithm 1

Mosaic generation algorithm.
Input: A Raster Image
Output: Artificial Mosaic of Image
begin
= Luminance( )
= Robert’s Gradient(Equalize( ))
= ( , μ, )
=
 Sort in queue pixels ( ) according to decreasing
values. Only pixels whose is greater
 than a threshold go into .
while   is not empty do
  Extract pixel from
  Place a tile in at angle
   = tan−l
  if  in this way the tile overlaps with previously
  placed tiles then
   Skip tile positioning
for   = 1 to   length( ) do
  for   = 1 to   width( ) do
   Place a tile in the pixel( ) at angle
    = tan−l
   if  in this way the tile overlaps with
   previously placed tiles then
    Skip tile positioning
end