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')

