Posted by
Dan McDonald on
Apr 04, 2014; 5:31pm
URL: http://imagej.273.s1.nabble.com/Intermittent-Problem-With-Analyze-Particles-Masks-tp5007197p5007209.html
Dear Jan, Jan and Gabriel,
Thank you so much for your prompt and incredibly helpful replies.
It appears the source of the problem remains a mystery but "doWand()"
executed within a macro seems the most likely culprit.
Implementing Gabriel's "floodFill()" approach in my macro worked on all of
my 3% images that did not work using "doWand()." It was the most
straightforward way to integrate a new approach into my code.
I plan to run this fix over several hundred new cases and will report back
if a few cases show up not working properly with "floodFill()."
Thanks again,
Dan
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
BioVoxxel
Sent: Friday, April 04, 2014 7:58 AM
To:
[hidden email]
Subject: Re: Intermittent Problem With Analyze Particles Masks
Hi Gabriel,
That seemed to be the problem. After explicitly stating "8-connected" as an
argument it seems to work (at least for a few different test images) in
comparison to the "old" method.
Thanks a lot!
Jan
2014-04-04 13:08 GMT+02:00 Gabriel Landini <
[hidden email]>:
> On Friday 04 Apr 2014 12:08:26 you wrote:
> > @ Gabriel:
> > Thanks for the hint with the floodFill(). Something I actually could
> > have thought about from beginning on. Sometimes one is just blind
> > for the obvious solution.
> > In theory, this would improve actions if used in the Advanced
> > Particle Analyzer with big images containing many particles.
> >
> > After some trials:
> > I implemented the floodFill in the Advanced Particle Analyzer.
> > Unfortunately, I ended up with several particles which were not
> > eliminated while they actually should be due to the shape descriptor
> > limitations keyed in.
>
> There must be something else. It does work. Are you sure you are
> matching the connectivity? (in this case "8")? E.g.
>
> floodFill(XStart[i],YStart[i],"8-connected");
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
CEO: Dr. rer. nat. Jan Brocher
phone: +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail:
[hidden email]
info:
[hidden email]
inquiries:
[hidden email]
web: www.biovoxxel.de
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html