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

