Rank Filters             package:rimage             R Documentation

_R_a_n_k _f_i_l_t_e_r_s (_m_i_n_I_m_g _a_n_d _m_a_x_I_m_g)

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

     These functions apply a rank filter among 3x3 neighbors to a given
     image.

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

     minImg(img)
     maxImg(img)

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

     img: target image

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

     In 'minImg', filter replaces a pixel in question with the minimum
     value among 3x3 neighbors. In 'maxImg', filter replaces a pixel in
     question with the maximum value among 3x3 neighbors.

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

     object of imagematrix class whose the size is as same as target

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

       data(logo)
       op <- par(mfrow=c(2,2))
       plot(logo, main="Original Image")            # original 
       plot(minImg(logo), main="Minimum-Filtered Image")   # minimum filtered
       plot(maxImg(logo), main="Maximum-Filtered Image")   # maximum filtered
       par(op)

