0
我有我的Jython的斐济插件的问题:的ImageJ /斐济:迭代通过,并在结果表打印
IJ.run("Set Measurements...", "area centroid perimeter shape feret's area_fraction redirect=None decimal=6")
IJ.run("Analyze Particles...")
rt = ResultsTable.getResultsTable()
for roi in RoiManager.getInstance().getRoisAsArray():
a = rt.getValue("Feret", row)
b = rt.getValue("MinFeret", row)
nu= 1
L = 1
p = 1
row = row + 1
s = (math.pi/4) * (1/(nu*L)) * math.pow(a, 3) * math.pow(b, 3)/(math.pow(a, 2) + math.pow(a, 2))*p
rt.addValue("S", s)
rt.show("Results")
Normaly这应该在我的oppinion添加新列(名为S)与值秒。不幸的是,只有最后一个值出现在列中,而此列中的所有其他行都填充了0.我肯定错过了某些内容,但此刻我不知道该怎么做。提前感谢您!
这就是它!非常感谢。 –