自动识别的对象转移到Imagej的ROI中 [英] Automatically recognized objects transferred into ROIs in Imagej

查看:526
本文介绍了自动识别的对象转移到Imagej的ROI中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的领域面临挑战,我需要一些建议.

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

我有一个带有年轮的图像.

I have an image with tree rings.

要查看我要使用的照片,可以在我的保管箱中查看它: https://dl.dropboxusercontent.com/u/65873264/Sample.jpg

To see a photo I want to work with, you can check it from my dropbox: https://dl.dropboxusercontent.com/u/65873264/Sample.jpg

我想编写一个宏/任务...,程序将在其中识别每个环并将其标记为ROI. 我正在尝试使用一些插件来完成此任务:模板匹配,功能查找器和可视抓图.但是那些戒指可能会变化很大.

I would like to write a macro/task... in which program will recognize each ring and mark it as ROI. I was trying to make this task using some plugins: Template Matching, Feature Finder and Visual grap. But those rings could be extremely variable.

我需要的是这样的:使用分析粒子"功能程序,可以识别阈值图像上的所有血管(对象).第二步很有趣:对于每个粒子,它检查周围是否存在0.5毫米范围内的粒子.如果是这样,它将创建一个包括两个粒子的ROI,并在0.5 mm范围内搜索下一个粒子...

What I need is something like that: With Analyze particles function program recognize all vessels (objects) on a thresholded image. Second step is fun: for each particle, it check if there is a particle around in a range of 0.5 mm. If it is, it creates an ROI including both particles and searches for next particle in the range of 0.5 mm...

有一个微笑方法[http://imagej.1557.x6.nabble.com/combine-particles-in-ROI-manager-automatically-td3692844.html] 但是在这里,宏首先会计算两个连续粒子之间的差异,但是我需要包括所有0.5毫米范围内的粒子.

There is a smillar method [http://imagej.1557.x6.nabble.com/combine-particles-in-ROI-manager-automatically-td3692844.html] But here macro at first calculates differences between two serial particles, but I need to include all particles in range of 0.5 mm.

推荐答案

以下ImageJ宏代码利用了

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");

这篇关于自动识别的对象转移到Imagej的ROI中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆