数字图像处理
sunyao_123
这个作者很懒,什么都没留下…
展开
-
cv2.fillPoly 和 cv2.fillConvexPoly:非凸任意形状填充和凸填充
cv2.fillConvexPoly: 官方文档:The function fillConvexPoly draws a filled convex polygon. This function is much faster than the function fillPoly . It can fill not only convex polygons but any monotonic po...原创 2017-07-01 10:19:00 · 31348 阅读 · 9 评论 -
ValueError: ndarray is not C-contiguous
使用函数skimage.morphology.convex_hull_image()进行凸填充时出现,错误:ValueError: ndarray is not C-contiguous 奇怪的是在凸填充之前进行开运算操作,就可行了。 开运算之前: 这个是二值化后的图像,类型为np.uint8,此时如果,直接进行凸填充会报错。 如果对上图进行开运算: 此时如果进行凸填充就不会报错...原创 2018-03-19 22:40:35 · 8895 阅读 · 2 评论