在Matlab中使用imtophat [英] Using imtophat in Matlab

查看:369
本文介绍了在Matlab中使用imtophat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在matlab中进行大礼帽过滤。 imtophat功能看起来很有希望,但我不知道如何使用它。我以前在Matlab上没有太多的工作。我试图在我的二维数组中找到几个像素宽的局部最大的小点。

I'm trying to do top hat filtering in matlab. The imtophat function looks promising, but I have no idea how to use it. I dont have a lot of work with Matlab before. I am trying to look find basically small spots several pixels wide that are local max in my 2 dimensional array.

推荐答案

tophat基本上是打开程序,然后从原始图像中减去结果。我在这里找到的最好和最有帮助的解释:

http://homepages.inf.ed.ac.uk/rbf/HIPR2/morops.htm

tophat is basically an "opening" procedure followed by a subtraction of the result from the original image. the best and most helpful explanation of opening I've found here:
http://homepages.inf.ed.ac.uk/rbf/HIPR2/morops.htm


开放的效果可以非常容易地显示。想象一下,将
结构化元素并在每个前景
区域内滑动,而不改变其方向。所有像素可以是
覆盖完整位于前景区域内的结构元素为
的结构元素将被保留。但是,结构元素
无法到达的所有
前景像素,其中没有部分移出前景区域将被侵蚀

"The effect of opening can be quite easily visualized. Imagine taking the structuring element and sliding it around inside each foreground region, without changing its orientation. All pixels which can be covered by the structuring element with the structuring element being entirely within the foreground region will be preserved. However, all foreground pixels which cannot be reached by the structuring element without parts of it moving out of the foreground region will be eroded away."

这篇关于在Matlab中使用imtophat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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