Login  Register

the 3th ROOT in the macro ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

the 3th ROOT in the macro ?

nckrzan
Hi,

I have problem in my Macro,
one of the necessary mathematical operations is 3th root of the number
however I really don't know how to present those function in the ImageJ
macro.
Can You help me?
Regards
Marcel Krzan



___ The message was checked by EMS.___
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: the 3th ROOT in the macro ?

Robert Dougherty
Marcel,

I assume you need the 3rd root of an image.  This would be

run("Log");
run("Divide...", "value=3.000");
run("Exp");


If you need a function that computes the third root of number, it might be

print("The third root of 27 is "+thridRoot(27));

function thridRoot(x){
        return exp(log(x)/3);
}


Bob

On Aug 15, 2011, at 2:23 PM, Marcel Krzan wrote:

> Hi,
>
> I have problem in my Macro,
> one of the necessary mathematical operations is 3th root of the number
> however I really don't know how to present those function in the ImageJ
> macro.
> Can You help me?
> Regards
> Marcel Krzan
>
>
>
> ___ The message was checked by EMS.___

Robert Dougherty, Ph.D.
President, OptiNav, Inc.
1414 127th Place NE #106
Bellevue, WA 98005
Tel. (425)891-4883
FAX (425)467-1119
www.optinav.com
[hidden email]
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: the 3th ROOT in the macro ?

Stephan Saalfeld
In reply to this post by nckrzan
pow(x,1/3)

Best,
Stephan


On Mon, 2011-08-15 at 23:23 +0200, Marcel Krzan wrote:

> Hi,
>
> I have problem in my Macro,
> one of the necessary mathematical operations is 3th root of the number
> however I really don't know how to present those function in the ImageJ
> macro.
> Can You help me?
> Regards
> Marcel Krzan
>
>
>
> ___ The message was checked by EMS.___