from icy.main import Icy seq = Icy.getMainInterface().getFocusedSequence() if seq != None: Icy.addSequence(seq.getCopy())
from icy.main import Icy from plugins.ylemontag.histogram import Histogram seq = Icy.getMainInterface().getFocusedSequence() #print dir(seq) hist = Histogram.compute(seq, 16, 0, 15); print dir(hist) for ibin in xrange(hist.getNbBins()): bin = hist.getBin(ibin) # print dir(bin) val = bin.getCentralValue() count = bin.getCount() print("%i: %i" % (val, count)) print "--------------------------------" # print seq.name # rois = seq.getROIs() # for roi in rois: # print dir(roi)