Automatically recognized objects transferred into ROIs in Imagej

◇◆丶佛笑我妖孽 提交于 2019-12-02 07:32:26

The following ImageJ macro code makes use of the Maximum and Minimum filters in ImageJ to perform a morphological closing operation on the particles in your sample image, and it then uses the Particle Analyzer to create ROIs from those:

open("https://dl.dropboxusercontent.com/u/65873264/Sample.jpg");
run("Duplicate...", "title=[Temporary Copy]");
run("8-bit");
setAutoThreshold("Default");
run("Analyze Particles...", "size=100-Infinity show=Masks clear include in_situ");
run("Maximum...", "radius=70");
run("Minimum...", "radius=70");
run("Analyze Particles...", "size=100-Infinity clear add");
selectWindow("Sample.jpg");
roiManager("Show All with labels");
roiManager("Show All");
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!