calculateOtsu(CRImage)
calculateOtsu()所属R语言包:CRImage
Does Otsu thresholding
是否大津阈值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function applies Otsu thresholding on the image.
该功能适用于对图像大津阈值。
用法----------Usage----------
calculateOtsu(allGreyValues)
参数----------Arguments----------
参数:allGreyValues
Vector of grey values.
向量的灰度值。
Details
详情----------Details----------
The function calculates a value which separates the grey value histogram the best in foreground and background.
该函数计算的值分离灰度值直方图最好在前台和后台。
值----------Value----------
the threshold
阈值
作者(S)----------Author(s)----------
Henrik Failmezger, failmezger@cip.ifi.lmu.de
参考文献----------References----------
<h3>See Also</h3> calculateThreshold localOtsuThreshold
举例----------Examples----------
f1= system.file("extdata", "exImg2.jpg", package="CRImage")
print(f1)
img=readImage(f1)
print(img)
#convert to grayscale[转换为灰度]
imgG=EBImage::channel(img,'grey')
#threshold value[阈值]
t=calculateOtsu(as.vector(imgG))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|