tile                 package:EBImage                 R Documentation

_T_i_l_i_n_g/_u_n_t_i_l_i_n_g _i_m_a_g_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Given a sequence of frames, 'tile' generates a single image with
     frames tiled. 'untile' is the inverse function and divides an
     image into a sequence of images.

_U_s_a_g_e:

       tile(x, nx=10, lwd=1, fg.col="#E4AF2B", bg.col="gray")
       untile(x, nim, lwd=1)

_A_r_g_u_m_e_n_t_s:

       x: An 'Image' object, an array or a list of these objects.

      nx: The number of tiled images in a row. 

     lwd: The width of the grid lines between tiled images, can be 0. 

  fg.col: The color of the grid lines.

  bg.col: The color of the background for extra tiles.

     nim: A numeric vector of 2 elements for the number of images in
          both directions.

_D_e_t_a_i_l_s:

     After object segmentation, 'tile' is a useful addition to
     'stackObjects' to have an overview of the segmented objects.

_V_a_l_u_e:

     An 'Image' object or an array, containing the tiled/untiled
     version of 'x'.

_A_u_t_h_o_r(_s):

     Oleg Sklyar, osklyar@ebi.ac.uk, 2006-2007

_S_e_e _A_l_s_o:

     'stackObjects'

_E_x_a_m_p_l_e_s:

       ## make a set of blurred Lenas
       lena = readImage(system.file("images", "lena-color.png", package="EBImage"))
       x = resize(lena, 128, 128)
       xt = list()
       for (t in seq(0.1, 5, len=9)) xt=c(xt, list(blur(x, s=t)))
       xt = combine(xt)
       if (interactive()) display(xt, title='Blurred Lenas')

       ## tile
       xt = tile(xt, 3)
       if (interactive()) display(xt, title='Tiled Lenas')

       ## untile
       xu = untile(lena, c(3, 3))
       if (interactive()) display(xu, title='Lena blocks')

