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)

