translate              package:EBImage              R Documentation

_I_m_a_g_e _t_r_a_n_s_l_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Translates an image.

_U_s_a_g_e:

       translate(x, v)

_A_r_g_u_m_e_n_t_s:

       x: An 'Image' object or an array.

       v: The translation vector or a matrix of translation vectors if
          'x' contains several images.

_D_e_t_a_i_l_s:

     Borders are repeated during translation.

_V_a_l_u_e:

     An 'Image' object or an array, containing the translated version
     of 'x'.

_A_u_t_h_o_r(_s):

     Gregoire Pau, gpau@ebi.ac.uk, 2008

_S_e_e _A_l_s_o:

     'resize', 'rotate'

_E_x_a_m_p_l_e_s:

       x = readImage(system.file("images", "lena-color.png", package="EBImage"))
       y = translate(x, c(20,20))
       if (interactive()) {
         display(x, title='Lena')
         display(y, title='Translated lena')
       }

       ## gradient
       y = translate(x, c(1,1))
       if (interactive()) display(0.5+4*(y-x), title='NE gradient')

