Posted by
Rogerio Hein on
Jun 02, 2008; 3:03pm
URL: http://imagej.273.s1.nabble.com/Macro-problem-number-comparisons-conditions-in-if-statements-tp3696093.html
Dear all,
I am trying to create a macro to exclude some particles based on size
(Feret) and shape (circularity) ranges from image stacks. I am trying
to use a solution similar to that in "CircularParticles.txt", as follows:
for (i=0; i<nResults; i++) {
x = getResult('XStart', i);
y = getResult('YStart', i);
circularity = getResult('Circ.', i);
if (circularity<0.85) {
doWand(x,y);
run("Clear");
}
}
After running "Analyze Particles" command, some particles present values
outside the expected range. The same occurs for the circularity values
in the "CircularParticles.txt", from the IJ website, or as presented
above, some particles present circularity values below 0.85, even for
Blobs.gif example image. Is there a bug or am I forgotting any detail? I
am using version 1.41d.
Thanks in advance.
Best wishes,
Rogerio Hein
--
Prof. Dr. Luis Rogerio de Oliveira Hein, L.D.
Professor Adjunto
Departamento de Materiais e Tecnologia
Faculdade de Engenharia de Guaratinguetá
UNESP - Universidade Estadual Paulista "Júlio de Mesquita Filho"
Av. Ariberto Pereira da Cunha, 333
12516-410 Guaratinguetá, SP
Tel.: (12) 3123 2873
Fax: (12) 3123 2852
Cel.: (12) 8125 0651
[hidden email]