calculateMeanStdTarget(CRImage)
calculateMeanStdTarget()所属R语言包:CRImage
Calculates Mean and Standard deviation of an image
计算图像的均值和标准偏差
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Mean and SD calculation
平均和的SD计算
用法----------Usage----------
calculateMeanStdTarget(imgT)
参数----------Arguments----------
参数:imgT
the Image to calculate.
图像来计算。
Details
详情----------Details----------
Mean and SD
平均和SD
值----------Value----------
Vector with mean and standard deviation.
向量均值和标准差。
作者(S)----------Author(s)----------
Henrik Failmezger, failmezger@cip.ifi.lmu.de
举例----------Examples----------
#read the target image[阅读目标图像]
f1= system.file("extdata", "exImg2.jpg", package="CRImage")
targetImage=readImage(f1)
#read the image whose color values should be adapted[阅读的图像,其色彩应适应值]
f2= system.file("extdata", "exImg3.jpg", package="CRImage")
imgToConvert=readImage(f2)
#calculate mean and standard deviation of target color channels[计算平均值和标准偏离目标色通道]
mst=calculateMeanStdTarget(targetImage)
# create a white pixel mask[创建一个白色像素面具]
whitePixelMask=imgToConvert[,,1]>0.85 & imgToConvert[,,2]>0.85 & imgToConvert[,,3]>0.85
#adapt color channels of image[调整图像的颜色通道]
imgCorrected=colorCorrection(imgToConvert,mst,whitePixelMask)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|