thresh                package:EBImage                R Documentation

_I_m_a_g_e _a_n_d _c_o_l_o_r _c_h_a_n_n_e_l _t_h_r_e_s_h_o_l_d_i_n_g

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

     Functions to threshold images and color channels of images.

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

       ## S4 method for signature 'Image':
       thresh(x, w=5, h=5, offset=0.01, ...)
       ## S4 method for signature 'Image':
       athresh(x, w=10, h=10, offset=0, ...)
       ## S4 method for signature 'Image':
       cthresh(x, threshold=0, ...)
       

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

       x: An object of 'Image'. For 'thresh' it must be in the
          'Grayscale' mode. 

    w, h: Thresholding frame width and height in pixel. 

  offset: Threshold offset from the mean value. 

threshold: Threshold value for channel thresholding (uniform). 

     ...: Reserved. 

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

     If 'thresh' and 'athresh' are adaptive thresholind functions.
     While 'athresh' can be used on both 'Grayscale' and  'TrueColor'
     images, 'thresh' can only be used on  'Grayscale' images, however
     it is significantly faster on them.

     The value of 'offset' in 'thresh' is on the same scale as data,
     i.e. the default value is selected assuming data in the range
     '[0,1]'. This value for 'athresh' should be selected empirically,
     as this function uses 'AdaptiveThreshold' of 'ImageMagick' and the
     scale of this parameter was not documented; the reasonable values
     are usually in the orders of 500, 1000 or avobe (at least to
     obtain similar thresholding to that of 0.01 with 'thresh' on
     cytomicroscopic images. ).

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

     A new instance of 'Image' in the same color mode as input.

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

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

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

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

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

     ' Image, Image, distmap, segment,  [,Image-method '

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

       ## see example(watershed)

