本文整理汇总了Python中ij.ImagePlus.getImageStack方法的典型用法代码示例。如果您正苦于以下问题:Python ImagePlus.getImageStack方法的具体用法?Python ImagePlus.getImageStack怎么用?Python ImagePlus.getImageStack使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ij.ImagePlus
的用法示例。
在下文中一共展示了ImagePlus.getImageStack方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: StackCells
# 需要导入模块: from ij import ImagePlus [as 别名]
# 或者: from ij.ImagePlus import getImageStack [as 别名]
#.........这里部分代码省略.........
#for ip in resizelist : ims.addSlice("", ip)
for i in range(len(resizelist)) :
ims.addSlice(self.__labels[i], resizelist[i])
self.__impRes = ImagePlus(self.__name, ims)
self.__impRes.show()
self.__sens = [1 for i in range(len(self.__iplist)) ]
if self.__appmedian : IJ.run(self.__impRes, "Median...", "radius=1 stack")
if self.__align : self.__falign()
if self.__avg : self.__favg()
if self.__mosa : self.__fmosa()
if self.__maxfinder : self.__fmaxfinder()
if self.__fire : IJ.run(self.__impRes, "Fire", "")
if self.__measures : self.__fmeasures()
self.__sens[:] = []
self.__listrois[:] = []
self.__iplist[:] = []
self.__cellsrois[:] = []
self.__ipw[:] = []
self.__iph[:] = []
self.__init = False
def __dia(self, event):
IJ.run("Set Scale...", "distance=0 known=0 pixel=1 unit=pixel")
#IJ.run("Properties...", "channels=1 slices=1 frames=20 unit=pixel pixel_width=1.0000 pixel_height=1.0000 voxel_depth=1.0000 frame=[1 sec] origin=0,0");
self.__impD = IJ.getImage()
self.__isD = self.__impD.getImageStack()
self.__display.text = "DIA="+self.__impD.getTitle()
self.__initDIA = True
def __fluo(self, event):
IJ.run("Set Scale...", "distance=0 known=0 pixel=1 unit=pixel")
self.__impF = IJ.getImage()
self.__isF = self.__impF.getImageStack()
self.__display.text = "FLUO="+self.__impF.getTitle()
self.__initFLUO = True
def __addroi(self, event) :
if ( not self.__init) :
IJ.showMessage("", "please start a new stack")
return
if ( not self.__initDIA) :
IJ.showMessage("", "please select an image for DIA")
return
if ( not self.__initFLUO) :
IJ.showMessage("", "please select an image for FLUO")
return
twres = TextWindow("measures-"+self.__name, "label\tname\tsol\tarea\tcirc\tAR\tFeret\taxis\traf\tdMajor\tdFeret\tdArea", "", 300, 450)
tab="\t"
self.__widthl = self.__display2.getText()
IJ.selectWindow(self.__impF.getTitle())
self.__rm = RoiManager.getInstance()
if (self.__rm==None): self.__rm = RoiManager()
if self.__impF.getImageStackSize() > 1 :