paintObjects             package:EBImage             R Documentation

_M_a_r_k_i_n_g _d_e_t_e_c_t_e_d _o_b_j_e_c_t_s _i_n _r_e_f_e_r_e_n_c_e _i_m_a_g_e_s

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

     This function allows to mark objects detected with 'getObjects' or
     'watershed' in colour for preview.

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


          paintObjects(x, tgt, opac=c(0.4, 0.05, 0.4),
     col=c("#FFC72C","#5BABF6","#FF372C"), ...)


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


     '_x' An object of 'Image-class' in the 'Grayscale' mode with
          integer-absed object encoding, as returned by 'watershed'. 

     '_t_g_t' A reference grayscale image to calculate object intensity.
          Should be 'TrueColor' to produce coloured output. 

     '_o_p_a_c' A numeric vector of opacity values for foreground (object
          boundary), object background and edges of object contacts. At
          least 3 values in the above sequence must be supplied.
          Opacity range is '[0,1]' with 0 being fully transparent. 

     '_c_o_l' A character vector of full colours (before opacity applied),
          colour names supported, to draw object boundaries, object
          background and edges of object contacts. At least 3 values
          must be supplied. Default color scheme is yellow for edges,
          blue for background and red for object contacts and object on
          image edges. 

     '...' Reserved for future use. 

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

     A copy of 'tgt' in the same colour mode with objects marked on top
     of the image. 'features' of 'x' are not transfered - this result
     is for visualization only.

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

     Copyright (c) 2005-2006 Oleg Sklyar : osklyar@ebi.ac.uk

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

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

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

     ' Image-class, watershed, getObjects '

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

         ## Not run: See ?watershed for example
       

