Login  Register

Re: Problem with Maximum intensity projection

Posted by Herbie on Mar 23, 2018; 3:50pm
URL: http://imagej.273.s1.nabble.com/Problem-with-Maximum-intensity-projection-tp5020309p5020316.html

Gabriel,

yes, it is quite cryptic and it takes some time to get acquainted...

Here is another example code that creates a disc that is flat for a
size-fraction of "flat" and has raised cosine slopes for the remainder
of the image size:

newImage( "wnd", "32-bit black", 256, 256, 1 );
flat = 0.75;
run( "Macro...", "code=[wH=w*0.5; rR=round(wH*"+flat+"); if(d<=rR) v=1;
if(d>rR && d<0.5*w) v=0.5*(1+cos((d-rR)*PI/(wH-rR)));]" );

Have fun

Herbie

:::::::::::::::::::::::::::::::::::::::::::::
Am 23.03.18 um 16:39 schrieb Gabriel Landini:

> On Friday, 23 March 2018 15:29:42 GMT [hidden email] wrote:
>> does this
>> <https://imagej.nih.gov/ij/macros/examples/MathMacroDemo.txt>
>> help a bit?
>
> Hi Herbie
> Thanks.  it is quite cryptic, I must say...
>
> Cheers
>
> Gabriel
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html