var x=installImage5DExtensions(); // get and print the image dimensions (width, height,channels,slices,frames) macro "Get Dimensions" { getDimensions(nw,nh,nch,nsl,nfr); print("width: "+nw); print("height: "+nh); print("channels: "+nch); print("slices: "+nsl); print("frames: "+nfr); print("display mode: "+Ext.getDisplayMode); } // Set the Image5D display to single channel, color macro "Set Color Mode" { Ext.setDisplayMode("color"); } // Set the display mode to all-channels, overlay macro "Set Overlay Mode" { Ext.setDisplayMode("overlay"); } // Get the current channel, print it, and advance by one macro "Next Channel" { getDimensions(nw,nh,nch,nsl,nfr); Ext.getChannel(ch); newCh = ch + 1; if (newCh>nch) newCh = 1; Ext.setChannel(newCh); } function installImage5DExtensions() { run("Image5D Extensions"); return 0; }