imageType               package:rimage               R Documentation

_G_e_t _i_n_f_o_r_m_a_t_i_o_n _o_n _c_o_l_o_r _t_y_p_e _o_f _i_m_a_g_e_m_a_t_r_i_x

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

     This function returns color type ("rgb" or "grey") of a given
     imagematrix.

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

     imageType(x)

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

       x: target image

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

     "rgb" or "grey"

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

       x <- read.jpeg(system.file("data", "cat.jpg", package="rimage"))
       cat("Image Type", imageType(x))

       x.grey <- rgb2grey(x)
       cat("Image Type", imageType(x.grey))

