问题描述
我想知道是否有人可以帮助我编写一种使用 Python 中的阈值方法仅获取道路的方法。到目前为止,我已经尝试过 otsu 方法,但它似乎噪音太大。我的第二个猜测是滞后,但我很难弄清楚如何在 python 中使用它。 这是我为 otsu 方法编写的代码:
from imageio import imread
import skimage
from skimage import filters
Imagem2 = imread("ik02.tif")
gray = skimage.color.rgb2gray(Imagem2)
gray_gauss = ndimage.filters.gaussian_filter(gray,1)
t = skimage.filters.threshold_otsu(gray_gauss)
otsu = gray_gauss > t
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)