import ij.*; import ij.process.*; import ij.gui.*; import java.awt.*; import ij.plugin.*; import ij.io.*; public class Raw8proj_ implements PlugIn { public void run(String arg) { OpenDialog od = new OpenDialog("Open RAW...", arg); String fileName = od.getFileName(); if (fileName==null) return; String directory = od.getDirectory(); IJ.showStatus("Opening: " + directory + fileName); IJ.run("Raw...", "path='"+directory+"\\lam-p8' image=8-bit width=64 height=64 offset=0 number=90 gap=0"); IJ.run("Raw...", "path='"+directory+"\\mu-p8' image=8-bit width=64 height=64 offset=0 number=90 gap=0"); IJ.run("Image Calculator...", "image1=lam-p8 operation=Average image2=mu-p8 create stack"); IJ.run("Fire"); IJ.run("3D Project...", "projection='Mean Value' axis=X-Axis slice=1 initial=0 total=360 rotation=10 lower=1 upper=255 surface=0 surface=100 interior=50"); IJ.selectWindow("Result"); IJ.run("3D Project...", "projection='Mean Value' axis=Y-Axis slice=1 initial=0 total=360 rotation=10 lower=1 upper=255 surface=0 surface=100 interior=50"); } }