Description Usage Arguments Value Author(s) See Also Examples
Support for converting ImageJ images to raster images.
1 2 |
x |
A java reference of class ij.ImagePlus. |
... |
Not used. |
A raster object. See as.raster.
Contributed by Paul Murrell http://www.stat.auckland.ac.nz/~paul/
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
## Load an image in ImageJ
logo <- system.file("images", "R.jpg", package = "RImageJ")
image <- IJ$openImage(logo)
## Use this image in a R plot
plot(c(100, 250), c(300, 450), type = "n", xlab = "", ylab = "")
rasterImage(image, 100, 300, 150, 350, interpolate = FALSE)
rasterImage(image, 100, 400, 150, 450)
rasterImage(image, 200, 300, 200 + xinch(.5), 300 + yinch(.3), interpolate = FALSE)
rasterImage(image, 200, 400, 250, 450, angle = 15, interpolate = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.