raster images and RImageJ
By romain francois on Thursday, February 18 2010, 11:17 - RImageJ - Permalink
The next version of R includes support for raster images in standard and grid graphics.
The RImageJ package uses ImageJ through rJava to read and manipulate images from various formats
Paul Murrell closed the gap and contributed code that allows using images from the RImageJ package as raster objects.
makes the graph :
This feature depends on R >= 2.11.0, so will only get available when this version becomes current, in the meantime, you can get the package from its rforge project page
Comments
I tried this with R 2.11.1 on mac os 10.5.8 with JGR 1.7-2 without success...
raster() appears not be defined as a function? Was it finally not included in R 2.11?
Thank you in advance for your help.
Hi,
This version of RImageJ has not been released yet. I should release it sometime next week.
Romain
next week, really?
still waiting for it…
Just to let you know I'd really enjoy playing with that…
best,
Thomas
I uploaded it to CRAN just now. It turns out "raster" was renamed "rasterImage", I updated the example in the documentation accordingly. See
Great!
Could you comment a bit on as.raster.jobjRef…
using as.raster(image), I can get the array of rgb strings, is there a way to get integers directly or to convert it to pixmap format…
My interest is mostly in grey images, 8 and 16 bits
Thank you in adavnce,
Thomas