// This example macro creates 2D montage of the images in a stack. // It demonstrates the use of batch mode, copy and paste, and shows // how to create an image that is the same type as another image. if (nSlices<2) exit("This macro requires a stack."); makeMontage(); function makeMontage() { setBatchMode(true); id=getImageID; n= nSlices; columns=floor(sqrt(n)); if (columns*columns