MonochromeImage {R.image}R Documentation

The MonochromeImage class

Description

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.

Usage

MonochromeImage(bits=NULL)

Arguments

bits A numeric NxK matrix with zeros and ones.

Methods

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

Author(s)

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

Examples

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


[Package R.image version 0.2.3 Index]