I tried to use the RImageJROI
package from David C Sterratt to transfer multiple ROIs
into R and convert them to Spatstat
.
This is a minimal example of my R-code
library(RImageJROI)
ROI = read.ijzip("path/ROI.zip")
spat.ROI = ij2spatstat(ROI)
Reading the zip-file works well but when I run the converting command I get the following error:
Error in conv.fun(k, window = window, unitname = unitname, scale = scale, : object 'out' not found
Attached there is a file for creating a ROI.zip
-file which causes the error after processing it in ImageJ
with:
run("Analyze Particles...", "add");
roiManager("Save", "Path\\Roi.zip");
Is there a way to get RImageJROI
working, am I missing something obvious, or does anyone know another solution for my project?