particle analysis within a selection

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

particle analysis within a selection

atloo1
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: particle analysis within a selection

Michael Schmid
On Jul 8, 2015, at 20:14, atloo1 wrote:

> I'll use the rectangle selection tool and enclose some features, but when
> outlines are displayed, I'm seeing everything in the window. This also
> happens when the exterior of the selection is cleared; everything
> rematerializes and is analyzed/counted anyways. Tips?

Hi anonymous,

sorry, I can't reproduce the problem. The following macro only analyzes the area within the rectangular selection:

 setBackgroundColor(255,255,255); //for 'Clear Outside'
 run("Blobs (25K)");
 setAutoThreshold("Default");
 makeRectangle(50, 49, 195, 189);
 //run("Clear Outside");  //works with and without this
 run("Analyze Particles...", "  show=Outlines clear include summarize");


Michael

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: particle analysis within a selection

atloo1
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: particle analysis within a selection

Michael Schmid
Hi anonymous,

you can try the daily build (Help>Update ImageJ). Wayne has modified the
code so that the selection is also used for analyzing particles in
thresholded RGB images.

Michael
____________________________________________________________________

On Thu, July 9, 2015 01:53, atloo1 wrote:

> This occurs with an RGB color image that can't be auto thresholded, but I
> apply one of my choice.
> The log from my macro recorder:
>
> open("file");
> run("Color Threshold...");
> run("Close");
> makeRectangle(24, 61, 285, 149);
> run("Analyze Particles...", "size=4-Infinity show=Outlines display clear
> include");
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/particle-analysis-within-a-selection-tp5013472p5013476.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html