用法:
cucim.skimage.filters.threshold_triangle(image, nbins=256)
根据三角形算法返回阈值。
- image:(N, M[, ..., P]) ndarray
灰度输入图像。
- nbins:整数,可选
用于计算直方图的 bin 数量。对于整数数组,此值将被忽略。
- threshold:浮点数
上阈值。强度高于此值的所有像素都被假定为前景。
参数:
返回:
参考:
- 1
Zack, G. W., Rogers, W. E. and Latt, S. A., 1977, Automatic Measurement of Sister Chromatid Exchange Frequency, Journal of Histochemistry and Cytochemistry 25 (7), pp. 741-753 DOI:10.1177/25.7.70454
- 2
ImageJ AutoThresholder code, http://fiji.sc/wiki/index.php/Auto_Threshold
例子:
>>> from skimage.data import camera >>> image = camera() >>> thresh = threshold_triangle(image) >>> binary = image > thresh
相关用法
- 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.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_triangle。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。