Login  Register

Re: wand

Posted by Michael Schmid on Dec 21, 2009; 4:11pm
URL: http://imagej.273.s1.nabble.com/wand-tp3689962p3689963.html

Hi Bill,

simply use Plugins>Macros>Record
It will give you, e.g.,

   run("Wand Tool...", "mode=4-connected tolerance=20");

If you want variables, you need something like this:

   myTolerance = 20;
   myWandMode = "4-connected";
   run("Wand Tool...", "mode="+myWandMode+" tolerance="+myTolerance);

In the latest ImageJ version you can also type

   run("Wand Tool...", "mode=&myWandMode tolerance=&myTolerance");

Michael
________________________________________________________________

On 21 Dec 2009, at 17:01, Rothman, William wrote:

> Could someone kindly give me the macro code for changing wand  
> thickness. Am using it for particle analysis and need to vary it in  
> code. Also want definitions of wand mode and tolerance. There's  
> probably a ref to these somewhere.
> Much appreciated and happy holidays to all,
> Bill R.