Esempio n. 1
0
#This is a jython script to display image with a lookuptable

import ij.IJ as IJ
from time import sleep
import math

for i in range(0, 100):
    if IJ.escapePressed():
        break
    IJ.beep()
    sleep(0.25 * abs(math.sin(i)))
    sleep(0.55 * abs(math.exp(-i + 1)))
    sleep(0.35 * abs(math.cos(i)))
    sleep(0.65 * abs(math.exp(-i + 1)))
Esempio n. 2
0
            rt.setValue(0, row,
                        "BFE:  " + a + "_(obj)" + " vs. " + b + "_(sel)")
            rt.show("BFE_Results")
            print "renamed elements BFE table"

IJ.selectWindow("BFE_Results")
IJ.saveAs("Text", analysisOut + File.separatorChar + "BFE_results.txt")

rtAP = WM.getWindow("Summary").getTextPanel().getOrCreateResultsTable()
AProw = -1
for ap in abbrv:
    for bp in abbrv:
        if ap != bp:
            AProw = AProw + 1
            rtAP.setValue(0, AProw,
                          "AP:  " + ap + "_(obj)" + " vs. " + bp + "_(sel)")
            rtAP.show("Summary")
    print "renamedelements AP table"

IJ.selectWindow("Summary")
IJ.saveAs("Text", analysisOut + File.separatorChar + "AP.Granule_Results.txt")
print "Saving GRANULE data table finished"
Commands.closeAll()
#rm.reset()

IJ.beep()  #specifically for chris
gdp = GenericDialogPlus("Ex Vivo Granule Analysis")
gdp.addMessage("DING!!! DING!!! Analysis Complete!")
gdp.showDialog()
IJ.beep()