Login  Register

Re: colored outlines

Posted by Rasband, Wayne (NIH/NIMH) [E] on Mar 10, 2010; 1:16am
URL: http://imagej.273.s1.nabble.com/colored-outlines-tp3689039p3689040.html

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