closing               package:EBImage               R Documentation

_M_o_r_p_h_o_l_o_g_i_c_a_l _o_p_e_r_a_t_i_o_n_s _o_n _i_m_a_g_e_s

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

     Functions to perform morphological operations on binary images.

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


         dilate(x, kern=morphKern(5), iter=1, ...)
         erode(x, kern=morphKern(5), iter=1, ...)
         opening(x, kern=morphKern(5), iter=1, ...)
         closing(x, kern=morphKern(5), iter=1, ...)

         morphKern(size=5, shape="round")


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


     '_x' An object of 'Image-class'. 'x' should be a binary image in
          the 'Grayscale' mode. If image is not binary, all non-zero
          pixels will be considered as 1 to turn the image into a
          binary '{0,1}' image. 

     '_k_e_r_n' Kernel mask matrix. 

     '_i_t_e_r' Number of iterations. 

     '_s_i_z_e, _s_h_a_p_e' Kernel matrix size and shape. 

     '...' Reserved for future use. 

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

     A transformed image in an object of 'Image-class'.

     'morphKern' returns a square matrix of 0 and 1 of a given size.

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

     'morphKern' can be used to generate a kernel matrix for the use
     with any of the morphological operators. The function can generate
     round and square  kernels of odd size, e.g. 5, 7, 9 etc. Even
     sizes are not supported because the location of the centre pixel
     is undefined. Kernels can be altered in any desired way, this is
     just a convenience function.

     'erode' applies the mask positioning its centre over every
     background pixel  (0), every pixel which is not covered by the
     mask is reset to foreground (1). In this way image features grow
     in size.

     'dilate' applies the mask positioning its centre over every
     foreground pixel (1), every pixel which is not covered by the mask
     is reset to background (0). In this way image features seem shrink
     in size.

     'opening' is erosion followed by dilation and 'closing' is
     dilation followed by erosion.

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

     Copyright (c) 2005-2006 Oleg Sklyar : osklyar@ebi.ac.uk

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

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

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

     ' Image-class, thresh, segment '

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

       ## Not run: see ?watershed for examples

