drawImage {imageUtilities} | R Documentation |
plots an image on an R device using the "grid" package.
drawImage(img, max = imageUtilities.option("max"), dev.new = TRUE, maxWidth = unit(7, "inches"), resize = FALSE, transpose = imageUtilities.option(".using.Voir"), ...)
img |
a heightxwidthxchannels *array* with the number of channels |
max |
max intensity of image |
dev.new |
whether to open up new device (sometimes may be nice not to in order to draw on an existing device). |
transpose |
boolean, whether to transpose image before drawing (should not need to be used – just for compatibility between Voir and non-Voir versions of the package) |
maxWidth |
the maximum width the image should be.
Can be either a number (in which case it will be
interpreted as *pixels*), or a unit of the form
|
resize |
boolean. If this is set to TRUE, then
instead of resizing the *display* to |
... |
passed into |
handle to the viewport.
The coordinate system is set up such that the *middle* of the top-left pixel has coordinates (1,1) (ie 1-based). Y increases downwards and X increases left-to-right (ie, an i-j coordinate system).
The middles of pixels have integer coordinates.
Other draw: imdisp
,
imdrawabline
, imdrawline
,
plotPoints
, pointPicker