| MonochromeImage {R.image} | R Documentation |
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.
MonochromeImage(bits=NULL)
bits |
A numeric NxK matrix with zeros and ones. |
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
Henrik Bengtsson (http://www.braju.com/R/)
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")