MonochromeImage           package:R.image           R Documentation

_T_h_e _M_o_n_o_c_h_r_o_m_e_I_m_a_g_e _c_l_a_s_s

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

     Package:  R.image 
      *Class MonochromeImage*

     'Object'
      '~~|'
      '~~+--''BitmapImage'
      '~~~~~~~|'
      '~~~~~~~+--''GrayImage'
      '~~~~~~~~~~~~|'
      '~~~~~~~~~~~~+--''MonochromeImage'

     *Directly known subclasses:*


     public static class *MonochromeImage*
      extends GrayImage

     The class MonochromeImage represents a black and white image and
     inherits from the GrayImage class.

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

     MonochromeImage(bits=NULL)

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

    bits: A 'numeric' NxK 'matrix' with zeros and ones.

_M_e_t_h_o_d_s:

     *Methods:*

         'as'                  -
         'as.MonochromeImage'  -
         'writePBM'            -

     *Methods inherited from GrayImage*:
      as, as.GrayImage, as.MonochromeImage, as.RGBImage, dim, equals,
     getColorMap, getColors, image, persp, plot3d, writePBM, writePGM,
     writePPM, writeRGB

     *Methods inherited from BitmapImage*:
      as.character, depth, dim, getColorMap, getColors, height, image,
     plot, points, read, readJPEG, readUsingExternal, width, write,
     writeBMP, writeEPS, writeJPG, writePBM, writePGM, writePNG,
     writePPM, writeRGB

     *Methods inherited from Object*:
      $, $<-, [[, [[<-, as.character, attach, attachLocally,
     clearCache, clone, detach, equals, extend, finalize, gc,
     getEnvironment, getFields, getInstanciationTime,
     getStaticInstance, hasField, hashCode, ll, load, objectSize,
     print, save

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

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

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

     mono <- BitmapImage$read("logosm-mono.pbm", path=system.file("images", package="R.image"))

     layout(matrix(1:4,ncol=2))
     image(mono)
     plot3d(mono, theta=190, phi=50, col="blue", cex=0.8)
     persp(mono, theta=190, phi=50, col="red")

