def __init__(self, data, morphology=None):
"""
This function will set up the underlying data structure. If no morphology is provided, the morphology array will
be generated as `numpy.max(data,axis=-1)`, i.e. a maximum projection over data along the time axis.
:param data:
:param morphology: This can either be a 2D numpy array with the same shape as the video, or None.
"""
self.postprocessor = self.no_postprocessor
# call the property setter which will initialize the mean data and threshold value
self.data = data
if morphology is None:
self.morphology = numpy.max(data, axis=-1)
else:
self.morphology = morphology
# todo: the active frame is merely a utility to synchronize widgets. maybe it should go to the gui...
self.active_frame = 0
评论列表
文章目录