识别边缘的倾斜方向(向内/向外)

问题描述 投票:1回答:1

我正在尝试确定边缘的梯度是指向内还是指向外(图像外),以识别肿瘤。关于如何优雅地进行此操作的任何想法?

boundaries image example

谢谢!

matlab image-processing computer-vision imaging
1个回答
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
© www.soinside.com 2019 - 2024. All rights reserved.