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')
       }

