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

