本文整理汇总了Python中ij.ImagePlus.getShortTitle方法的典型用法代码示例。如果您正苦于以下问题:Python ImagePlus.getShortTitle方法的具体用法?Python ImagePlus.getShortTitle怎么用?Python ImagePlus.getShortTitle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ij.ImagePlus
的用法示例。
在下文中一共展示了ImagePlus.getShortTitle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: print
# 需要导入模块: from ij import ImagePlus [as 别名]
# 或者: from ij.ImagePlus import getShortTitle [as 别名]
query = sTifPath + "*.tif"
print(query)
lFiles = glob.glob(query)
i = 0
for fi in lFiles:
i += 1
fi = fi.replace("\\", "/")
print(fi)
orig = ImagePlus(fi)
strName = os.path.basename(fi)
strName = strName.split('.')[0]
lStr = strName.split('-')
ti = orig.getShortTitle()
orig.setTitle(ti)
IJ.run(orig, "Measure","")
time.sleep(1)
orig.close()
rt = ResultsTable.getResultsTable()
nMeas = rt.getCounter()
minC = rt.getColumnIndex("Min")
maxC = rt.getColumnIndex("Max")
minStats = DSS()
maxStats = DSS()
for i in range(nMeas):
minVal = rt.getValueAsDouble(minC, i)
minStats.addValue(minVal)
maxVal = rt.getValueAsDouble(maxC, i)
示例2: print
# 需要导入模块: from ij import ImagePlus [as 别名]
# 或者: from ij.ImagePlus import getShortTitle [as 别名]
parOut = []
ecdOut = []
cirOut = []
rndOut = []
solOut = []
arOut = []
query = sImgPath + "*.tif"
print(query)
lFiles = glob.glob(query)
i = 0
for fi in lFiles:
i += 1
orig = ImagePlus(fi)
orig = jmg.calibImageDirect(orig, umPerPx, units=-6)
strName = orig.getShortTitle()
strNum = strName.split('IMAGE')[1]
iNum = int(strNum)
strName = "%s-%02d" % (sampID, iNum )
orig.setTitle(strName)
orig.show()
if i == 1:
# a hack to get the scale bars to work reliably
foo = orig.duplicate()
IJ.run(foo, "RGB Color", "")
IJ.run(foo, "Add Scale Bar", strBar)
rt = jmg.anaParticlesWatershed(orig, strThrMeth="method=Otsu white", bFillHoles=True, minPx=minArea, maxPx=maxArea, minCirc=minCirc, maxAR=maxAR)
nMeas = rt.getCounter()
nCols = rt.getLastColumn()