def linescan(self, data, mask):
"""
Calculate the trace for all children and return a 2D array of traces.
:param data: the data to apply on.
:param mask: some additional overlay mask
:return: 2D numpy array holding traces for all children
"""
return numpy.row_stack((child(data, mask) for child in self.segments))
评论列表
文章目录