// This Macro counts particles inside specific Roi and otputs the number to TAB separated Log window which after saving can be imported to excel. print ("RoiNumber"," ","SliceLabel"," ","RoIName"," ","Count"," ","RoIArea"," ","RoIPerimeter"," "," ParticlesCoveredArea"," ","AreaFraction") ; setAutoThreshold("Default dark"); n = roiManager("count"); for (i=0; i