rasterview.py 文件源码

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

项目:SamuROI 作者: samuroi 项目源码 文件源码
def linescan(self):
        """
        Calculate the trace for all children and return a 2D array aka linescan for that branch roi.
        """
        if self.parent_mask in self.__linescans:
            return self.__linescans[self.parent_mask]
        import numpy
        data = self.segmentation.data
        overlay = self.segmentation.overlay
        postprocessor = self.segmentation.postprocessor
        self.__linescans[self.parent_mask] = numpy.row_stack(
            (postprocessor(child(data, overlay)) for child in self.parent_mask.children))
        return self.__linescans[self.parent_mask]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号