transforms.py 文件源码

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

项目:thunder-registration 作者: thunder-project 项目源码 文件源码
def apply(self, im):
        """
        Apply an n-dimensional displacement by shifting an image or volume.

        Parameters
        ----------
        im : ndarray
            The image or volume to shift
        """
        from scipy.ndimage.interpolation import shift
        return shift(im, map(lambda x: -x, self.delta), mode='nearest')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号