Re: Analyze Particles: "the list is empty"
Posted by
Krs5 on
May 26, 2016; 8:15am
URL: http://imagej.273.s1.nabble.com/Analyze-Particles-the-list-is-empty-tp5016514p5016530.html
Dear Stefano,
Looking at the code snippet it seems you are using the ROI manager and probably have to check if the ROI manager is empty and not if the Results table is empty
If (roiManager("count") > 0) {
... (statement)
}
Kees
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of s.morara
Sent: 24 May 2016 19:10
To:
[hidden email]
Subject: Analyze Particles: "the list is empty"
Dear All,
within a macro I need to execute "Analyze Particles..." by using a predefined size threshold (I call it "myDim") (command line = run("Analyze Particles...", "size=myDim-Infinity display exclude include add");). The macro analyzes an array of single images.
When the macro encounters an image with no particles having size > myDim (and hence the Results table is empty), the macro stops and the window appears "The list is empty". This happens even if I write a conditional statement
if (nResults > 0) {
... (statement)
}
I am using ImageJ 1.49v on a PC (Windows 7, Lenovo).
I thank all that can help.
Yours
Stefano
--
Dr. Stefano Morara
Neuroscience Institute - C.N.R.
c/o Dep. BIOMETRA, University of Milano
Via Vanvitelli 32
20129 Milano
ITALY
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html