【发布时间】:2020-01-25 06:35:13
【问题描述】:
我正在对图像进行一些预处理,在图像上应用Otsu thresholding 后,我的阈值为零,而在另一个图像上它工作正常
from skimage import filters
from skimage.io import imread
img = imread(img_path, as_gray=True)
threshold = filters.threshold_otsu(img)
print(threshold)
阈值:0
阈值:204
【问题讨论】:
-
你有什么问题?
-
@BogdanDoicin 为什么第一张图片的阈值为零而不是第二张图片
标签: python image-processing scikit-image image-thresholding