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

