segment               package:EBImage               R Documentation

_S_e_g_m_e_n_t_a_t_i_o_n _a_n_d _e_d_g_e _d_e_t_e_c_t_i_o_n

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

     Fucntions to segment images and detect edges.

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

       ## S4 method for signature 'Image':
       edge(x, r=0, ...)
       ## S4 method for signature 'Image':
       segment(x, cl=10, s=1.5, ...)
       ## FIXME: 'fill' implemented incorrectly because of unclear API
       ## S4 method for signature 'Image':
       fill(x, col, xoff, yoff, fuzz=10, method="floodfill", ...) 

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

       x: An object of 'Image'. 

       r: The radius of the pixel neighbourhood to take into account. 
          The 0 value enables automatic radius selection. 

      cl: Minimum cluster size in pixels . 

       s: The smoothing threshold. 

     col: The fill colour in any format ('character', gray  value or
          integer byte-coded value).

xoff, yoff: The point at which to start the fill. 

    fuzz: Colour tolerance, within this interval the colours are
          considered the same. 

  method: Fill method. 

     ...: Reserved. 

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

     'edge' returns an image of edges between different colours in the 
     original image. Most effective on binary images.

     'segment' segment an image by analyzing the histograms of the
     color  components and identifying units that are homogeneous with
     the fuzzy  C-means technique (source and implementation
     'ImageMagick'). The smoothing threshold eliminates noise in the
     second derivative of the  histogram. As the value is increased,
     you can expect a smoother second derivative.

     'fill' should allow colour fill, but ImageMagick API is not clear
     and the current implementation does not seem to produce any
     reasonable result. Therefore the function will currently produce
     an error message, should be corrected in future releases.

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

     A transformed image in an object of 'Image'.

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

     Oleg Sklyar, osklyar@ebi.ac.uk, 2005-2006

_R_e_f_e_r_e_n_c_e_s:

     _ImageMagick_: <URL: http://www.imagemagick.org>.

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

     ' Image '

