colorspace              package:adimpro              R Documentation

_C_o_l_o_r _S_p_a_c_e _C_o_n_v_e_r_s_i_o_n

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

     Color space conversion functions for RGB, YUV, YIQ, XYZ, and HSI.

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

     rgb2grey(obj, compress=TRUE)
     rgb2hsi(obj)
     hsi2rgb(obj, compress=TRUE)
     rgb2yuv(obj)
     yuv2rgb(obj, compress=TRUE)
     rgb2yiq(obj)
     yiq2rgb(obj, compress=TRUE)
     rgb2xyz(obj)
     xyz2rgb(obj, compress=TRUE)

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

     obj: an object of class "adimpro", 'obj$type' should coincide with
           the first three letters of the function name, that is
          'obj$img' containes  color values in the corresponding color
          space.

compress: logical, determines if image data are returned in raw-format. 

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

     The functions convert an image 'obj' from one color space into
     another. 

     'rgb2grey' converts from RGB to GREYSCALE.

     'rgb2hsi' and 'hsi2rgb' convert from RGB to HSI and vice versa.

     'rgb2yuv' and 'yuv2rgb' convert from RGB to YUV and vice versa.

     'rgb2yiq' and 'yiq2rgb' convert from RGB to YIQ and vice versa.

     'rgb2xyz' and 'xyz2rgb' convert from RGB to CIE XYZ and vice
     versa.

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

     an object of class "adimpro", with 'value$type' specifying the
     color space (last three letters of the function name or
     'greyscale' for 'rgb2grey') and 'value$img' containing the color
     values.

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

     Karsten Tabelow tabelow@wias-berlin.de

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

     Gonzalez, R.C., and Woods, R.E. (2002). Digital Image Processing.
     Prentice Hall. 

     Polzehl, J., and Tabelow, K. (2007). Adaptive smoothing of digital
     images, Journal of Statistical Software 19 (1).

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

     img <- read.image(system.file("img/wias.ppm",package="adimpro"))
     img.hsi <- rgb2hsi(img)
     plot(img.hsi)

