I’m stumbling over what is hopefully a simple problem. I’ve defined multiple ROIs in a series of images. From within a macro I’d like be able to extract the indices of a subset (>1) that have been manually selected in the ROI Manager. I’d like to save these indices to an array that I can use later in the macro. The roiManager("index”) function only “returns the index of the first selected ROI if more than one is selected”.
I’ve come across online documentation for “ij.plugin.frame.RoiManager.getSelectedIndexes”, “ij.plugin.frame.RoiManager.getIndexes”, “ij.plugin.frame.RoiManager.getSelectedRoisAsArray” which all seem like they would accomplish this task, but I haven’t had any success getting these functions to work in a macro using call(), eval(), or run(). Could that result from the ij/plugin/frame/RoiManager.java not having been installed with the basic ImageJ program (I’m working in 1.50i)?
Any suggestions for a work around or a way to get these functions working in a macro?