colored outlines

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

colored outlines

Bill Rothman
Hi,

I'm sure my problem is simple. Need macro code to color the Analyze
Particles outline (wh. Backgrnd) to print them as overlays on an
overhead project transparency.

Thank you,

Bill R.

 
Reply | Threaded
Open this post in threaded view
|

Re: colored outlines

Tiago Ferreira-2
On 2010.03.09, at 14:40 , Rothman, William wrote:

>
> Hi,
>
> I'm sure my problem is simple. Need macro code to color the Analyze
> Particles outline (wh. Backgrnd) to print them as overlays on an
> overhead project transparency.
>
> Thank you,
>
> Bill R.
>
> =20

Have a look at:
<http://imagejdocu.tudor.lu/doku.php?id=macro:roi_color_coder>
\tiago
Reply | Threaded
Open this post in threaded view
|

Re: colored outlines

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by Bill Rothman
On Mar 9, 2010, at 2:40 PM, Rothman, William wrote:

> Hi,
>
> I'm sure my problem is simple. Need macro code to color the Analyze
> Particles outline (wh. Backgrnd) to print them as overlays on an
> overhead project transparency.

You can do this by adding the particle outlines to the ROI Manager, setting the color using the ROI Manager's "Properties" command, and then moving the outlines to an overlay using the Image>Overlay>From ROI Manager command. Here is a macro I created by recording these steps.

   requires("1.43p");
   open("http://rsb.info.nih.gov/ij/images/blobs.gif");
   setAutoThreshold("Default");
   run("Analyze Particles...", "size=200 add exclude");
   resetThreshold();
   roiManager("Set Color", "yellow");
   run("From ROI Manager");

-wayne


blobs.jpg (36K) Download Attachment