本文整理汇总了Python中ij.WindowManager.putBehind方法的典型用法代码示例。如果您正苦于以下问题:Python WindowManager.putBehind方法的具体用法?Python WindowManager.putBehind怎么用?Python WindowManager.putBehind使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ij.WindowManager
的用法示例。
在下文中一共展示了WindowManager.putBehind方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: sum
# 需要导入模块: from ij import WindowManager [as 别名]
# 或者: from ij.WindowManager import putBehind [as 别名]
avg = sum(s)*1.0/len(s)
variance = map(lambda x: (x-avg)**2, s)
return math.sqrt(average(variance))
def average(x):
average = sum(x)*1.0/len(x)
return average
IJ.log("Results for " + path.basename(stackpath) + ":")
IJ.log("Average intensity: " + str(average(means)))
IJ.log("Standard deviation: " + str(stdev(means)))
# now, use the subtracted image to output the flat field image and plot
# get the plot out of the way to bring back the stack
WM.putBehind()
#average all frames
IJ.run("Z Project...", "projection=[Average Intensity]")
# plot the diagonal profile
imp = IJ.getImage()
IJ.run("Line Width...", "line=3")
IJ.makeLine(0, 0, imp.width, imp.height)
IJ.run("Plot Profile")
# bring back the projection, run Measure to get max and min
WM.putBehind()
IJ.run("Measure") #this method reports the actual max and min, not averaged across 3 px...
rt = ResultsTable.getResultsTable()
max = rt.getValue("Max", 0)
min = rt.getValue("Min", 0)