Re: Analysing particles inside ROIs
Posted by Gabriel Landini on Sep 29, 2006; 9:41am
URL: http://imagej.273.s1.nabble.com/Analysing-particles-inside-ROIs-tp3701414p3701421.html
On Friday 29 September 2006 03:45, Jacqui Ross wrote:
> It's true that the Particle Analyzer restricts the analysis to the ROIs
> but it doesn't give me the data for each individual ROI.
> Therefore, I can put the individual ROIs into the ROI Manager but then
> have to go to Analyze - Analyze Particles.
> This gives me data for each particle and only measures the particles
> within the ROIs.
> However, it does not give me particle results within each ROI, e.g. ROI
> 1 contains 2 particles, ROI 2 contains 5 particles, etc.
You will have to write a macro or a plugin to loop through your ROIs and do
the particle analysis for each ROI at a time. Since you know which ROI you
are currently analysing, you know how many particle it has inside.
I think your problem is that you want to see that in the results table? But
the particle analyzer does not work like that, I think.
You will have to program the macro to get the ROI name (or XStart YStart) and
the number of particles detected after running the particle analyzer in that
ROI (this is given by the nResults variable) so you can output the result to
a text file or a log window.
I hope it helps
G.