识别边缘的渐变方向(向内\向外)

时间:2016-06-19 07:46:55

标签: matlab image-processing computer-vision imaging

我试图找出边缘的渐变是指向内还是向外(图像外)以识别肿瘤。关于如何优雅地做到这一点的任何想法?

boundaries image example

谢谢!

1 个答案:

答案 0 :(得分:0)

正拉普拉斯算子

在正拉普拉斯算子中,我们有标准的蒙版,其中蒙版的中心元素应为负,蒙版的角元素应为零。

 Positive Laplacian Operator is use to take out outward edges in an image.

负拉普拉斯算子

在负拉普拉斯算子中,我们也有一个标准遮罩,其中中心元素应为正。角中的所有元素应为零,而蒙版中的所有其他元素应为-1。

 Negative Laplacian operator is use to take out inward edges in an image