next up previous
Next: Experimental Results Up: Implementation Issues Previous: Synthesis of a Colour

Time Complexity.

The bunch sampling is a fast synthesis algorithm compared to other major synthesis techniques. At the analysis stage, the running time for computing the grid parameters includes the time for both collecting the GLCHs and performing a spatial analysis of the MBIM. Similar to a un-partitioned convolution algorithm, collecting the GLCHs for all clique families inside $ \mathcal{W}$ over a training image $ {g}^{\circ}$ involves quadratic time complexity, proportional to $ \vert{g}^{\circ}\vert\cdot\vert\mathcal{W}\vert$. Since typically a search window has a size proportional to the training image, e.g., $ \vert\mathcal{W}\vert = \vert{g}^{\circ}\vert/3$, the time complexity is roughly $ O({\vert{g}^{\circ}\vert}^2)$. The running time for the spatial analysis of an MBIM is $ O(\vert\mathcal{W}\vert)$, which is linear to the window size. Therefore, the overall time complexity of the analysis stage is $ O({\vert{g}^{\circ}\vert}^2)$.

At the synthesis stage, the running time for synthesising each pixel is constant, if a hash table is built to store signal values for each relative shift at a pre-processing stage so that the synthesis of a pixel involves only an operation of querying the hash table. So the time complexity for synthesising the entire texture is $ O(\vert{g}^{syn}\vert)$. Building the hash table requires to scan the training image $ {g}^{\circ}$ pixel by pixel in a raster scanline order, which has time complexity of $ O(\vert{g}^{\circ}\vert)$. Usually $ \vert{g}^{\circ}\vert<\vert{g}^{syn}\vert$. Therefore, the overall time complexity at the synthesis stage is still $ O(\vert{g}^{syn}\vert)$, which is linearly proportional to the size of the synthetic image.

Figure 7.2: Synthesis of regular textures by bunch sampling: The sizes of training textures, MBIMs, and synthetic textures are $ 128\times 128$, $ 125\times 125$ and $ 360\times360$, respectively. The training textures are taken from [82,8].
\includegraphics[width=0.6in]{d6.bmp.eps}
 
\includegraphics[width=0.6in]{d6.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{d6_g.bmp.eps}
  D6
\includegraphics[width=0.6in]{d14.bmp.eps}
 
\includegraphics[width=0.6in]{d14.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{d14_g.bmp.eps}
  D14
\includegraphics[width=0.6in]{d20.bmp.eps}
 
\includegraphics[width=0.6in]{d20.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{d20_g.bmp.eps}
  D20
\includegraphics[width=0.6in]{d34.bmp.eps}
 
\includegraphics[width=0.6in]{d34.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{d34_g.bmp.eps}
  D34
\includegraphics[width=0.6in]{d52.bmp.eps}
 
\includegraphics[width=0.6in]{d52.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{d52_g.bmp.eps}
  D52
\includegraphics[width=0.6in]{d101.bmp.eps}
 
\includegraphics[width=0.6in]{d101.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{d101_g.bmp.eps}
  D101
\includegraphics[width=0.6in]{d102.bmp.eps}
 
\includegraphics[width=0.6in]{d102.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{d102_g.bmp.eps}
  D102
\includegraphics[width=0.6in]{tile07.bmp.eps}
 
\includegraphics[width=0.6in]{tile07.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{tile07_g.bmp.eps}
  Tile07

Figure 7.3: Synthesis of stochastic textures by bunch sampling: The sizes of training textures, MBIMs, and synthetic textures are $ 128\times 128$, $ 125\times 125$ and $ 360\times360$, respectively. The training textures are taken from [82,8].
\includegraphics[width=0.6in]{d4.bmp.eps}
 
\includegraphics[width=0.6in]{d4.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{d4_g.bmp.eps}
  D4
\includegraphics[width=0.6in]{d24.bmp.eps}
 
\includegraphics[width=0.6in]{d24.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{d24_g.bmp.eps}
  D24
\includegraphics[width=0.6in]{bark0009.bmp.eps}
 
\includegraphics[width=0.6in]{bark0009.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{bark0009_g.bmp.eps}
  Bark0009
\includegraphics[width=0.6in]{water02.bmp.eps}
 
\includegraphics[width=0.6in]{water02.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{water02_g.bmp.eps}
  Water0002
\includegraphics[width=0.6in]{flowe04.bmp.eps}
 
\includegraphics[width=0.6in]{flowe04.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{flowe04_g.bmp.eps}
  Flower0004
\includegraphics[width=0.6in]{metal05.bmp.eps}
 
\includegraphics[width=0.6in]{metal05.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{metal05_g.bmp.eps}
  Metal0005
\includegraphics[width=0.6in]{grass01.bmp.eps}
 
\includegraphics[width=0.6in]{grass01.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{grass01_g.bmp.eps}
  Grass01
\includegraphics[width=0.6in]{fabri16.bmp.eps}
 
\includegraphics[width=0.6in]{fabri16.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{fabri16_g.bmp.eps}
  Fabric0016

Figure 7.4: Synthesis of colour textures by bunch sampling: The sizes of training textures, MBIMs, and synthetic textures are $ 128\times 128$, $ 125\times 125$ and $ 360\times360$, respectively. The training textures are taken from  [65].
\includegraphics[width=0.6in]{TN_Ncollege-inn256.bmp.eps}
 
\includegraphics[width=0.6in]{TN_Ncollege-inn256.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{TN_Ncollege-inn256_g.bmp.eps}
  Cans
\includegraphics[width=0.6in]{TN_SWeave1_t.bmp.eps}
 
\includegraphics[width=0.6in]{TN_SWeave1_t.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{TN_SWeave1_t_g.bmp.eps}
  Weave
\includegraphics[width=0.6in]{Sdesign24.bmp.eps}
 
\includegraphics[width=0.6in]{Sdesign24.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{Sdesign24_g.bmp.eps}
  Dots
\includegraphics[width=0.6in]{Stile-floor1_c.bmp.eps}
 
\includegraphics[width=0.6in]{Stile-floor1_c.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{Stile-floor1_c_g.bmp.eps}
  Floor
\includegraphics[width=0.6in]{tn_n64.bmp.eps}
 
\includegraphics[width=0.6in]{tn_n64.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{tn_n64_g.bmp.eps}
  Flowers
\includegraphics[width=0.6in]{TN_Nfloral4.bmp.eps}
 
\includegraphics[width=0.6in]{TN_Nfloral4.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{TN_Nfloral4_g.bmp.eps}
  Flora
\includegraphics[width=0.6in]{TN_NKNIT-FINE.bmp.eps}
 
\includegraphics[width=0.6in]{TN_NKNIT-FINE.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{TN_NKNIT-FINE_g.bmp.eps}
  Knit
\includegraphics[width=0.6in]{TN_Rdesign5.bmp.eps}
 
\includegraphics[width=0.6in]{TN_Rdesign5.m.bmp.eps}
MBIM
\includegraphics[width=1.8in]{TN_Rdesign5_g.bmp.eps}
  Design


next up previous
Next: Experimental Results Up: Implementation Issues Previous: Synthesis of a Colour
dzho002 2006-02-22