网络编程
位置:首页>> 网络编程>> Python编程>> python skimage 连通性区域检测方法

python skimage 连通性区域检测方法

作者:oneTaken  发布时间:2023-04-15 00:53:40 

标签:python,skimage,连通

涉及到的函数为


import matplotlib.pyplot as plt
from skimage import measure, color
labels = measure.label(img4[:,:,0], connectivity=2)
dst = color.label2rgb(labels)
plt.imshow(dst)

labels为整个灰度图像的坐标的类别标签,值为[0, max_label], 一个连通区域为一个 lable .

来源:https://blog.csdn.net/u011394059/article/details/78753953

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com