// Updated version of GFP-LC3 macro for Image J version 1.42 and higher. { requires("1.33j"); // setFont() added in 1.33j newImage("Welcome Frame", "RGB white", 550, 100, 1); setColor(0, 0, 0); x=50; y=20; setFont("SansSerif" , 16, "bold"); y += 30; setColor(0, 0, 255); drawString("Welcome to the ImageJ Mitophagy Marcro by Ruben K. Dagda" x, y); macro "Open File [F9]" { open(); setTool(2); // Measure the area of the cell on the green channel only run("Restore Selection"); print ("select the region or cell of interest to analyze then press function 10 key"); print ("press F10= processes image for ensuing quantifications"); print ("press F4= closes all unused windows"); } macro "Process RGB Image [F10]" { run("Clear Results"); // Select the outline of the cell containing mitos on the appropriate channel only setTool(2); // Measure the area of the cell on the green channel only run("Copy"); run("Duplicate...","\n"); run("Paste"); run("RGB Split"); run("Invert"); run("Sharpen"); setAutoThreshold(); //run("Threshold..."); run("Restore Selection"); } { macro "Measure [F11]" { run("Clear Results"); run("Set Measurements...", "area circularity fit perimeter redirect=None decimal=3"); run("Analyze Particles...", "display results summarize size distribution minimum=3 maximum=100000000 bins=100 pixel show=Outlines display summarize"); for (i=0; i0) { selectImage(nImages); close(); } //Closes all windows except your results which you can transfer to Excel } }