ocontour               package:EBImage               R Documentation

_O_r_i_e_n_t_e_d _c_o_n_t_o_u_r_s

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

     Computes the oriented contour of objects.

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

       ocontour(x)

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

       x: An 'Image' object or an array, containing objects. Only
          integer values are considered. Pixels of value 0 constitute
          the background. Each object is a set of pixels with the same
          unique integer value. Objets are assumed connected. 

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

     A list of matrices, containing the coordinates of object oriented
     contours.

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

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

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

       x = readImage(system.file("images", "shapes.png", package="EBImage"))
       x = x[1:120,50:120]
       if(interactive()) display(x)
       oc = ocontour(x)
       plot(oc[[1]], type='l')
       points(oc[[1]], col=2)

