title_1=File.openDialog("Choose GFP file"); open(title_1); dir_GFP=File.getParent(title_1)+File.separator; name_GFP=File.nameWithoutExtension(); print(dir_GFP+name_GFP+".xls"); run("16-bit"); run("Despeckle"); run("Subtract Background...", "rolling=40"); title_2=File.openDialog("Choose mCherry file"); open(title_2); dir_mC=File.getParent(title_2)+File.separator; name_mC=File.nameWithoutExtension(); print(dir_mC+name_mC+".xls"); run("16-bit"); run("Despeckle"); run("Subtract Background...", "rolling=40"); run("Images to Stack", "name=Stack title=[] use"); run("Align slices in stack..."); selectWindow("Results"); IJ.renameResults("alignment clutter"); run("Close"); inputId = getImageID(); inputTitle = getTitle(); Stack.getDimensions(width, height, channels, slices, frames); setSlice(1); setTool("rectangle"); waitForUser("Identify ROIs, adding each to ROI Manager with 't' button."); roiManager("Combine"); setBackgroundColor(0, 0, 0); run("Clear Outside"); setSlice(2); run("Clear Outside"); run("Select None"); roiManager("Reset"); setSlice(1); run("Find Maxima...", "noise=2 output=[Maxima Within Tolerance]"); run("Create Selection"); roiManager("Add"); roiManager("Select", 0); roiManager("Split"); roiManager("Select", 0); roiManager("Delete"); close(); counter=0; roiManager("Deselect"); objects=roiManager("Count"); setColor(255,1,1); setLineWidth(4); for(ii=0; ii