用法:
cucim.skimage.filters.threshold_mean(image)
根據灰度值的平均值返回閾值。
- image:(N, M[, ..., P]) ndarray
灰度輸入圖像。
- threshold:浮點數
上閾值。強度高於此值的所有像素都被假定為前景。
參數:
返回:
參考:
- 1
C. A. Glasbey, “An analysis of histogram-based thresholding algorithms,” CVGIP: Graphical Models and Image Processing, vol. 55, pp. 532-537, 1993. DOI:10.1006/cgip.1993.1040
例子:
>>> from skimage.data import camera >>> image = camera() >>> thresh = threshold_mean(image) >>> binary = image > thresh
相關用法
- Python cucim.skimage.filters.threshold_minimum用法及代碼示例
- Python cucim.skimage.filters.threshold_multiotsu用法及代碼示例
- 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_li用法及代碼示例
- Python cucim.skimage.filters.threshold_triangle用法及代碼示例
- Python cucim.skimage.filters.try_all_threshold用法及代碼示例
- 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.threshold_mean。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。