用法:
cucim.skimage.filters.try_all_threshold(image, figsize=(8, 5), verbose=True)
返回一個數字,比較不同閾值方法的輸出。
- image:(N, M) ndarray
輸入圖像。
- figsize:元組,可選
圖形尺寸(英寸)。
- verbose:布爾型,可選
打印每個方法的函數名稱。
- fig, ax:元組
Matplotlib 圖和軸。
參數:
返回:
注意:
使用以下算法:
- isodata
- li
- mean
- minimum
- otsu
- triangle
- yen
例子:
>>> from skimage.data import text >>> fig, ax = try_all_threshold(text(), figsize=(10, 6), verbose=False)
相關用法
- Python cucim.skimage.filters.threshold_mean用法及代碼示例
- Python cucim.skimage.filters.threshold_niblack用法及代碼示例
- Python cucim.skimage.filters.threshold_isodata用法及代碼示例
- Python cucim.skimage.filters.threshold_otsu用法及代碼示例
- Python cucim.skimage.filters.threshold_sauvola用法及代碼示例
- Python cucim.skimage.filters.threshold_yen用法及代碼示例
- Python cucim.skimage.filters.threshold_local用法及代碼示例
- Python cucim.skimage.filters.threshold_minimum用法及代碼示例
- Python cucim.skimage.filters.threshold_multiotsu用法及代碼示例
- Python cucim.skimage.filters.threshold_li用法及代碼示例
- Python cucim.skimage.filters.threshold_triangle用法及代碼示例
- Python cucim.skimage.filters.roberts_neg_diag用法及代碼示例
- Python cucim.skimage.filters.gabor用法及代碼示例
- Python cucim.skimage.filters.roberts_pos_diag用法及代碼示例
- Python cucim.skimage.filters.roberts用法及代碼示例
- Python cucim.skimage.filters.gabor_kernel用法及代碼示例
- Python cucim.skimage.filters.sobel_v用法及代碼示例
- Python cucim.skimage.filters.sobel_h用法及代碼示例
- Python cucim.skimage.filters.sobel用法及代碼示例
- Python cucim.skimage.filters.gaussian用法及代碼示例
注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cucim.skimage.filters.try_all_threshold。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。