transform_hsa.py 文件源码

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

项目:pynufft 作者: jyhmiinlin 项目源码 文件源码
def _linear_phase(self, n_shift):
        """
        Private: Select the center of FOV
        """
        om = self.st['om']
        M = self.st['M']
        final_shifts = tuple(
            numpy.array(n_shift) +
            numpy.array(self.st['Nd']) / 2)

        phase = numpy.exp(
            1.0j *
            numpy.sum(
                om * numpy.tile(
                    final_shifts,
                    (M,1)),
                1))
        # add-up all the linear phasees in all axes,

        self.st['p'] = scipy.sparse.diags(phase, 0).dot(self.st['p0'])
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号