samuroidata.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:SamuROI 作者: samuroi 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号