nifti.py 文件源码

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

项目:pisap 作者: neurospin 项目源码 文件源码
def load(self, path):
        """ A method that load the image data and associated metadata.

        Parameters
        ----------
        path: str
            the path to the image to be loaded.

        Return
        ------
        image: Image
            the loaded image.
        """
        _image = nibabel.load(path)
        return Image(spacing=_image.header.get_zooms(),
                     data_type="scalar",
                     metadata={"path": path},
                     data=_image.get_data())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号