countObjects(imageHTS)
countObjects()所属R语言包:imageHTS
Count the number of objects in a segmented image
在分割图像计数的对象数量
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Count the number of objects in a segmented image.
在分割图像计数的对象数量。
用法----------Usage----------
countObjects(cseg)
参数----------Arguments----------
参数:cseg
An image containing the objects.
图像包含的对象。
值----------Value----------
An integer indicating the number of objects in the cell mask.
一个整数,指示单元面膜中的对象的数量。
作者(S)----------Author(s)----------
Gregoire Pau, <a href="mailto:gregoire.pau@embl.de">gregoire.pau@embl.de</a>, 2010
参见----------See Also----------
segmentWells
segmentWells
举例----------Examples----------
## initialize imageHTS object using the local submorph screen[#初始化imageHTS对象使用当地submorph屏幕。]
local = tempdir()
server = system.file('submorph', package='imageHTS')
x = parseImageConf('conf/imageconf.txt', localPath=local, serverURL=server)
x = configure(x, 'conf/description.txt', 'conf/plateconf.txt', 'conf/screenlog.txt')
## segment one well[#段一口井]
uname = getUnames(x, content='rluc')[1]
z = segmentWells(x, uname=uname, segmentationPar='conf/segmentationpar.txt', writeData=FALSE)
n = countObjects(z$cseg)
cat('number of cells=', n, '\n')
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|