Combine               package:EBImage               R Documentation

_C_o_m_b_i_n_i_n_g _i_m_a_g_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Merges images to create image sequences.

_U_s_a_g_e:

       combine(x, ..., along)        

_A_r_g_u_m_e_n_t_s:

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

     ...: 'Image' objects or arrays.

   along: an optional numeric. See details.

_D_e_t_a_i_l_s:

     The function 'combine' uses 'abind' to merge multi-dimensionnal
     arrays along the dimension specified by the value 'along'.

     If 'along' is missing, a default value depending on the color mode
     of 'x' is used. If 'x' is a 'Grayscale' image or an array, 'along'
     is set to 3 and image objects are combined on this dimension. If
     'x' is a 'Color' image, 'along' is set to 4 and image objects are
     combined on this dimension, leaving room on the third dimension
     for color channels.

_V_a_l_u_e:

     An 'Image' object or an array.

_A_u_t_h_o_r(_s):

     Gregoire Pau

_S_e_e _A_l_s_o:

     'Image'

_E_x_a_m_p_l_e_s:

       if (interactive()) {
         ## combination of color images
         lena = readImage(system.file("images", "lena-color.png", package="EBImage"))
         x = combine(lena, flip(lena), flop(lena))
         if (interactive()) display(x)

         ## Blurred lenas
         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')
       }

