【发布时间】:2016-04-20 18:42:13
【问题描述】:
我使用 Kirsch 的过滤器获得了以下结果,但我想删除我用下面的红色箭头指出的圆形检测(实际上不是血管):
如何去除不是血管的圆形检测?这是当前分段的代码:
h1 = np.array([[5, -3, -3], [5, 0, -3], [5, -3, -3]], dtype=np.float32)/ 15
h2 = np.array([[-3, -3, 5], [-3, 0, 5], [-3, -3, 5]], dtype=np.float32) / 15
h3 = np.array([[-3, -3, -3], [5, 0, -3], [5, 5, -3]], dtype=np.float32) / 15
h4 = np.array([[-3, 5, 5], [-3, 0, 5], [-3, -3, -3]], dtype=np.float32) / 15
h5 = np.array([[-3, -3, -3], [-3, 0, -3], [5, 5, 5]], dtype=np.float32) / 15
h6 = np.array([[5, 5, 5], [-3, 0, -3], [-3, -3, -3]], dtype=np.float32) / 15
h7 = np.array([[-3, -3, -3], [-3, 0, 5], [-3, 5, 5]], dtype=np.float32) / 15
h8 = np.array([[5, 5, -3], [5, 0, -3], [-3, -3, -3]], dtype=np.float32) / 15
我想要的结果是这样的(注意这个分割是不同的图像):
【问题讨论】:
-
您可以尝试使用 houghcircles(用于检测和去除圆形边界)
标签: python image opencv image-processing