normalize              package:EBImage              R Documentation

_I_n_t_e_n_s_i_t_y _v_a_l_u_e_s _l_i_n_e_a_r _s_c_a_l_i_n_g

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

     Linearly scale the intensity values of an image to a specified
     range.

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

       normalize(x, separate=TRUE, ft=c(0,1))

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

       x: An 'Image' object or an array.

separate: If 'TRUE', normalizes each frame separately.

      ft: A numeric vector of 2 values, target minimum and maximum 
          intensity values after normalization. 

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

     An 'Image' object or an array, containing the transformed version
     of 'x'.

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

     Oleg Sklyar, osklyar@ebi.ac.uk, 2006-2007

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

       x = readImage(system.file('images', 'shapes.png', package='EBImage'))
       x = x[110:512,1:130]
       y = bwlabel(x)
       if (interactive()) display(x, title='Original')

       print(range(y))
       y = normalize(y)
       print(range(y))

       if (interactive()) display(y, title='Segmented')

