Automatically recognized objects transferred into ROIs in Imagej

前端 未结 1 930
清歌不尽
清歌不尽 2021-01-26 14:10

I am facing a challange in my field and I would need some advices.

I have an image with tree rings.

To see a photo I want to work with, you can check it from my

相关标签:
1条回答
  • 2021-01-26 14:33

    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");
    
    0 讨论(0)
提交回复
热议问题