本文整理匯總了Python中ij.gui.GenericDialog.show方法的典型用法代碼示例。如果您正苦於以下問題:Python GenericDialog.show方法的具體用法?Python GenericDialog.show怎麽用?Python GenericDialog.show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ij.gui.GenericDialog
的用法示例。
在下文中一共展示了GenericDialog.show方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: quit
# 需要導入模塊: from ij.gui import GenericDialog [as 別名]
# 或者: from ij.gui.GenericDialog import show [as 別名]
gd.addChoice("Subtracted channel:",titles,titles[1])
gd.showDialog()
if (gd.wasCanceled()):
quit()
index1 = gd.getNextChoiceIndex()
index2 = gd.getNextChoiceIndex()
image1 = WindowManager.getImage(wList[index1])
image2 = WindowManager.getImage(wList[index2])
IJ.selectWindow(wList[index1])
rt = ResultsTable.getResultsTable()
rt.reset()
gd = WaitForUserDialog("Pick region with only bleedthrough")
gd.show()
al1 = Analyzer(image1)
theSlice = image1.getSlice()
al1.measure()
al1.displayResults()
theRoi = image1.getRoi()
al2 = Analyzer(image2)
image2.setSlice(theSlice)
image2.setRoi(theRoi)
al2.measure()
al2.displayResults()
gd = WaitForUserDialog("Pick autofluorescent tissue region")
gd.show()
al1.measure()
al1.displayResults()
theRoi = image1.getRoi()