Login  Register

Re: Opening .zip files

Posted by Wayne Rasband on Jul 11, 2005; 8:10pm
URL: http://imagej.273.s1.nabble.com/Re-Opening-zip-files-tp3705266p3705270.html

> On Friday 08 July 2005 18:51, Wayne Rasband wrote:
>  > ImageJ 1.34r, now available at
>  > "http://rsb.info.nih.gov/ij/notes.html".
>
> Added the imageCalculator() macro function.
>
> Wayne, what is the syntax for this?

This syntax is described at

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

>  Are there any advantages over using the image calculator as
> we've been doing  so far?

The code is more concise and readable, plus you can use image IDs  
instead of image titles. For example, you can use

   imageCalculator("Average", "img 2.tif","img 2.tif");

instead of

   run("Image Calculator...", "image1=[img 2.tif] operation=Average  
image2=[img 2.tif]");

And, if only two images open, you can use

   imageCalculator("Average", 1, 2);

-wayne