im                 package:spatstat                 R Documentation

_C_r_e_a_t_e _a _P_i_x_e_l _I_m_a_g_e _O_b_j_e_c_t

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

     Creates an object of class '"im"' representing a two-dimensional
     pixel image.

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

       im(mat, xcol=seq(ncol(mat)), yrow=seq(nrow(mat)))

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

     mat: matrix of grey level pixel values of the image. 

    xcol: vector of x coordinates for the pixels 

    yrow: vector of y coordinates for the pixels 

_D_e_t_a_i_l_s:

     This function creates an object of class '"im"' representing a
     two-dimensional pixel image. See 'im.object' for details of this
     class.

     Note that the *row* index of the matrix 'mat' corresponds to
     increasing *y* coordinate, while the column index of 'mat'
     corresponds to increasing *x* coordinate. Thus 'xrow' has one
     entry for each row of 'mat' and 'ycol' has one entry for each
     column of 'mat'. A correct display of the image would be obtained
     by transposing, e.g. 'image.default(xcol, yrow, t(mat))', if you
     wanted to do it by hand.

_W_a_r_n_i_n_g_s:

     The internal representation of images is likely to change in the
     next release of this package.

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

     Adrian Baddeley adrian@maths.uwa.edu.au <URL:
     http://www.maths.uwa.edu.au/~adrian/> and Rolf Turner
     rolf@math.unb.ca <URL: http://www.math.unb.ca/~rolf>

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

     'im.object', 'Kmeasure', 'setcov'

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

        whitenoise <- im(matrix(rnorm(10000), 100, 100))
        image(whitenoise)

