# FINDS THE TISSUE AREA img2 = imp.duplicate() channels2=ChannelSplitter.split(img2); redimg2=channels2[0]; IJ.run(redimg2, "8-bit", ""); IJ.setAutoThreshold(redimg2, "Default dark"); IJ.setThreshold(redimg2,20, 254); IJ.run(redimg2, "Convert to Mask", ""); redimg2.show() time.sleep(1) rt2 = ResultsTable() ta=Analyzer(redimg2,Measurements.AREA|Measurements.LIMIT,rt2) ta.measure(); double=rt2.getColumnAsDoubles(rt2.getColumnIndex("Area")) summary["Tissue-area"] =double[0]; redimg2.changes = False redimg2.close() # PARTICLE ANALYSIS ETC.. channels = ChannelSplitter.split(imp); for i, channel in enumerate(channels): IJ.setAutoThreshold(channel,"Default"); summary[color[i] + "-intensity"] = "NA" summary[color[i] + "-ROI-count"] = "NA"