用法:
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。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。