Login  Register

Re: Process>Math>Exp

Posted by Wayne Rasband on Jan 31, 2006; 9:31pm
URL: http://imagej.273.s1.nabble.com/adaptive-thresholding-allgorithm-tp3703880p3703884.html

> I am able to apply
> Process>Math>Log
> to an image with the macro:
> Run("Log")
>
> However I am not able to to apply an exponential in the same manner:
> Run("Exp")
>
> Is there a call or workaround for this?

ImageJ 1.35q will have a Process>Math>Exp command. In the meantime, use
this macro code:

       for (y=0; y<getHeight; y++) {
           for (x=0; x<getWidth; x++) {
               putPixel(x, y, exp(getPixel(x, y)));
           }
           if (y%20==0)  showProgress(y, getHeight);
        }
        resetMinAndMax;

-wayne