/* Draw and get ROI coordinates * Just drag and drop the macro to Fiji and Run it * Select the image file on which to define the ROIs * Define or update the ROIs by first clicking on Polygon Selection in Fiji */ function define_ROI(listROI,outDir,file,pxsize){ open(file); imID=getImageID(); run("Set Scale...", "distance=1 known="+pxsize+" pixel=1 unit=microns"); run("ROI Manager..."); run("Labels...", "color=white font=12 show use draw bold"); run("Colors...", "foreground=white background=white selection=green"); //run("Colors...", "foreground=white background=white selection=red"); roiManager("UseNames", "true"); setTool("polygon"); for (i=0;i