Login  Register

Re: Analysing particles inside ROIs

Posted by Nick Mortimer on Oct 03, 2006; 4:18am
URL: http://imagej.273.s1.nabble.com/Analysing-particles-inside-ROIs-tp3701414p3701416.html

Hi,

Quick question dose Particle Analyzer now export particle ROIs to the
ROI manager? I wrote my own custom particle Analyzer to save the
outlines of each particle in XY text format. You can the step through
the file and Particle Analyze each outline again, is that the sort of
thing you mean?

Nick  

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
Gabriel Landini
Sent: Friday, 29 September 2006 4:42 PM
To: [hidden email]
Subject: Re: Analysing particles inside ROIs

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.