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:

       
       ## S4 method for signature 'Image':
       dilate(x, kern=morphKern(5), iter=1, ...)
       ## S4 method for signature 'Image':
       erode(x, kern=morphKern(5), iter=1, ...)
       ## S4 method for signature 'Image':
       opening(x, kern=morphKern(5), iter=1, ...)
       ## S4 method for signature 'Image':
       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'. '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. 

    kern: Kernel mask matrix. 

    iter: Number of iterations. 

size, shape: Kernel matrix size and shape. 

     ...: Reserved. 

_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.

_V_a_l_u_e:

     A transformed image in an object of 'Image'.

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

_A_u_t_h_o_r(_s):

     Oleg Sklyar, osklyar@ebi.ac.uk, 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, thresh, segment '

_E_x_a_m_p_l_e_s:

       ## see example(propagate)

