math functions in a macro

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

math functions in a macro

Agnès Sauleda Brossa
Hi,

I need to do a previous calculations with data coming form a window dialog *in
a macro*. I need to do a *square root* and *round *the result to the *nearest
integer*. There is any way to do that?

Thanks,

Agnès
Reply | Threaded
Open this post in threaded view
|

Re: math functions in a macro

Wayne Rasband
> I need to do a previous calculations with data coming form a window
> dialog *in a macro*. I need to do a *square root* and *round *the
> result to the *nearest integer*. There is any way to do that?

All the functions built into the macro language are listed at

     http://rsb.info.nih.gov/ij/developer/macro/functions.html

Included on the list are sqrt() and round(). Use the Dialog.*()
functions described at

    http://rsb.info.nih.gov/ij/developer/macro/functions.html#dialog

to have the macro open a dialog box.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: math functions in a macro

Agnès Sauleda Brossa
Thanks a lot.

Agnès

2006/2/21, Wayne Rasband <[hidden email]>:

>
> > I need to do a previous calculations with data coming form a window
> > dialog *in a macro*. I need to do a *square root* and *round *the
> > result to the *nearest integer*. There is any way to do that?
>
> All the functions built into the macro language are listed at
>
>      http://rsb.info.nih.gov/ij/developer/macro/functions.html
>
> Included on the list are sqrt() and round(). Use the Dialog.*()
> functions described at
>
>     http://rsb.info.nih.gov/ij/developer/macro/functions.html#dialog
>
> to have the macro open a dialog box.
>
> -wayne
>
Reply | Threaded
Open this post in threaded view
|

nearest neighbour

Carlo A Scire
Hi all,
Is there a way to perform a "neareast neighbour analysis" of cell
distribution?

Thank you

Carlo