how to redirect to in a plugin

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

how to redirect to in a plugin

gerrit
I like to redirect measurements as described below, but I like to do it from
a plugin. How can I perform this, the binary mask and grey image are
available as ImagePlus image.

thanks,
Gerrit.

--------------------


The "Redirect To" feature in Analyze>Set Measurements allows you to run
the particle analyzer on a set of ROI masks with measurements taken
from corresponding areas in another image. Here is an example macro
that does watershed segmentation on the "blobs" image and runs the
particle analyzer in redirected mode.

   run("Blobs (25K)");
   run("Duplicate...", "title=mask");
   run("Threshold");
   run("Watershed");
   run("Set Measurements...",
     "area mean  redirect=blobs.gif decimal=3");
   run("Analyze Particles...",
     "minimum=1 maximum=9999 bins=20 show=Nothing  display clear  ");
   selectWindow("Results");

-wayne