display               package:EBImage               R Documentation

_I_n_t_e_r_a_c_t_i_v_e _i_m_a_g_e _d_i_s_p_l_a_y

_D_e_s_c_r_i_p_t_i_o_n:

     Display images.

_U_s_a_g_e:

     display(x, no.GTK, main, colorize,
             title = paste(deparse(substitute(x))),
             useGTK = TRUE)
     animate(x)

_A_r_g_u_m_e_n_t_s:

       x: An 'Image' object or an array.

  useGTK: A logical of length 1. See details.

   title: Window title.

no.GTK, main, colorize: Deprecated.

_D_e_t_a_i_l_s:

     By default (and if available), the 'display' function uses GTK to
     open a window and display the image. Multiple windows can be
     opened in this way.

     If GTK is not available or if 'useGTK' is 'FALSE', ImageMagick is
     used; only one window at a time can be open, and it needs to be
     closed by the user interactively before the next window can be
     opened. The ImageMagick display is not available on MS-Windows.

     The 'animate' function shows an animated sequence of images and
     uses 'ImageMagick'. Similar limitations as for 'display' apply
     (only one window, not on MS-Windows.)

_V_a_l_u_e:

     The functions are called for their side effect. Return value is
     invisible 'NULL'.

_A_u_t_h_o_r(_s):

     Oleg Sklyar, osklyar@ebi.ac.uk

_R_e_f_e_r_e_n_c_e_s:

     ImageMagick: <URL: http://www.imagemagick.org> GTK: <URL:
     http://www.gtk.org>, on MS-Windows <URL: http://gladewin32.sf.net>

_E_x_a_m_p_l_e_s:

        ## single image
        lena = readImage(system.file("images", "lena-color.png", package="EBImage"))
        if (interactive()) display(lena)

        ## animated threshold
        x = readImage(system.file("images", "lena-color.png", package="EBImage"))
        x = resize(x, 128, 128)
        xt = list()
        for (t in seq(0.1, 5, len=9)) xt=c(xt, list(blur(x, s=t)))
        xt = combine(xt)
        if (interactive()) display(xt, title='Blurred Lenas')

