// Chris Gell //November 2017 //v2 20171201 //This is the chang I have made today! //This //Macro to partially automate MT depoly rate calculations. //load a data set, set the thrshold, then choose a FOV to choos MTs. //Prompt for time label timeLabel=getNumber("Enter the time spacing in seconds", 5) //clear the ROI manager if (roiManager("count") !=0) { roiManager("deselect"); roiManager("delete"); } //clear any results run("Clear Results"); //configure set measurments run("Set Measurements...", "fit redirect=None decimal=3"); // pre process run("Gaussian Blur...", "sigma=2 stack"); //threshold it run("Threshold..."); setOption("BlackBackground", false); //wait for the user waitForUser( "Pause","Please set the threshold (apply it, click ok), click OK."); //bring threshold to front if (isOpen("Threshold")) { selectWindow("Threshold"); // bring to front } //wait for the user waitForUser( "Pause","Choose a frame that will be used to detect and set MT ROIs, click OK."); //detect where tubes are run("Analyze Particles...", " circularity=0.00-0.50 show=Outlines exclude add"); run("Close"); //enlarge these ROIs to give a little error tolerence counts=roiManager("count"); for(i=0; i