Re: Marcos - passing on measures to varibles in the same macro
Posted by
Michael Schmid on
Jun 23, 2010; 1:47pm
URL: http://imagej.273.s1.nabble.com/Marcos-passing-on-measures-to-varibles-in-the-same-macro-tp3687849p3687851.html
Hi Roger,
have a look at the descriptions of the macro language, especially the
functions:
http://rsb.info.nih.gov/ij/developer/macro/functions.htmlYou need no measurement for the center of an image:
tolerance = 0; //or whatever you like
doWand(getWidth()/2, getHeight()/2, tolerance, "8-connected")
If you don't want the geometrical center of the image, but really
need the result of a measurement, use the getResult("Column", row)
command.
Michael
________________________________________________________________
On 23 Jun 2010, at 15:12, Roger_Kemp wrote:
> Hello,
>
> I would like to use the doWand command in a macro on the centre of
> an image,
> but I will not know the co-ords of the centre so I would like to run a
> measurement to find the centroid co-ordinates and pass the values
> on to a
> varible to use later on in the same macro.
>
> is this possible? and if so how?
>
> thanks in advance
>
> Roger