Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Feb 24, 2015; 3:04pm
URL: http://imagej.273.s1.nabble.com/Roi-Manager-headless-mode-tp5011750p5011751.html
On Feb 24, 2015, at 9:28 AM, Greg <
[hidden email]> wrote:
>
> Hi,
>
> also if I think "headlessmode" is a troublesome issue for the brave
> developers/supporters here,
> I also got the impression people are trying to fix this intermingled GUI
> java.awt issues inherited from imageJ 1.x .
Consider using an Overlay instead of the RoiManager. An Overlay is like an RoiManager without a GUI. Here is a JavaScript example that creates an Overlay and lists all of its ROIs:
img = IJ.openImage("
http://imagej.nih.gov/ij/images/blobs.gif");
IJ.setAutoThreshold(img, "Default");
IJ.run(img, "Analyze Particles...", " show=[Overlay Outlines] exclude");
overlay = img.getOverlay();
for (i=0; i<overlay.size(); i++)
IJ.log(i+" "+overlay.get(i));
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html