thresholding             package:rimage             R Documentation

_t_h_r_e_s_h_o_l_d_i_n_g _i_m_a_g_e

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

     This function applies thresholding to an image. You can choose
     fixed threshold mode or discriminal analysis mode. In fixed
     threshold mode, you can simply specify threshold value. In
     discriminal analysis mode, threshold is determined automatically
     so that two clusters are seperated most clearly.

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

     thresholding(img, mode="fixed", th=0.5)

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

     img: target imagematrix image

    mode: thresholding mode. You can specify "fixed" for fixed
          threshold mode or "da" for discriminal analysis mode".

      th: threshold to be used if mode is "fixed", otherwise ignored

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

     a pixmap image

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

       data(logo)
       op <- par(mfrow=c(2,2))
       plot(logo, main="Original")
       plot(thresholding(logo, mode="fixed"), main="threshold=0.5")
       plot(thresholding(logo, mode="fixed", th=0.9), main="threshold=0.9")
       plot(thresholding(logo, mode="da"), main="auto threshold by discriminal analysis")
       par(op)

