当前位置: 首页>>代码示例>>Python>>正文


Python ImagePlus.getShortTitle方法代码示例

本文整理汇总了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)
开发者ID:jrminter,项目名称:OSImageAnalysis,代码行数:32,代码来源:measGrayStatsTifDir.py

示例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()
开发者ID:jrminter,项目名称:OSImageAnalysis,代码行数:33,代码来源:anaClumpedMatte.py


注:本文中的ij.ImagePlus.getShortTitle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。