// Arthur Edelstein, Micro-Manager, UCSF, 2009 // This script demonstrates the use of color SLMs (Spatial Light Modulators). import ij.IJ; imgp1 = IJ.openImage("http://valelab.ucsf.edu/~arthur/images/testRGB.tif"); pix1 = imgp1.getProcessor().getPixels(); imgp2 = IJ.openImage("http://valelab.ucsf.edu/~arthur/images/testRGB2.tif"); pix2 = imgp2.getProcessor().getPixels(); slms = mmc.getLoadedDevicesOfType(mmc.getDeviceType(mmc.getSLMDevice())); int n = slms.size(); pix1 = new ArrayList(); pix2 = new ArrayList(); for (j=0;j