distmap               package:EBImage               R Documentation

_D_i_s_t_a_n_c_e _m_a_p _t_r_a_n_s_f_o_r_m _o_f _b_i_n_a_r_y _i_m_a_g_e_s

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

     The function computes a distance map transformation of a binary
     image, i.e. of an image whose pixels are labeled as _foreground_
     and _background_.  In the distance map, each pixel contains the
     distance from that pixel to the nearest background pixel, or to
     the border of the image. Note: this is a trivial brute force
     implementation. Please look elsewhere for efficient
     implementations; see also the references.

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

       ## S4 method for signature 'Image':
       distmap(x, t=0.05, exact=FALSE, bg=0.05, ...)

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

       x: A 'Grayscale' object of 'Image'. 'x' is considered as a
          binary image, consisting of 0's for background and all other
          values for foreground. 

       t: A numeric vector of length 1, the background threshold in the
          range  '[0,1)'. Pixels with intensity smaller than 't' are
          considered  as background. 

      bg: A numeric numeric vector of length 1, the allowed minimum of
          the fraction of  background pixels in the image. Deprecated.

   exact: ???

     ...: Further arguments.

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

     A 'Grayscale' object of 'Image' with pixels containing the 'floor'
     values of their distances to the nearest  background points.

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

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

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

     2D Euclidean Distance Transform Algorithms: A Comparative Survey.
     R. Fabbri, L. da F. Costa, J.C. Torelli and O.M. Bruno. ACM
     Computing Surveys, Vol. 40, No. 1, Article 2 (Feb. 2008).

     The Image Processing Handbook. John Russ. 5th edition, 2006, CRC
     Press.

     VIGRA by Ullrich Koethe:
     http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra

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

     ' Image, watershed, thresh, propagate '

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

       ## Not run: see ?watershed for an example

