Interpolate/Resize 3D array

前端 未结 3 616
面向向阳花
面向向阳花 2021-02-15 16:37

I have a 3D array holding voxels from a mri dataset. The model could be stretched along one or more directions. E.g. the voxel size (x,y,z) could be 0.5x0.5x2 mm. Now I want to

3条回答
  •  囚心锁ツ
    2021-02-15 17:28

    You can use TorchIO for that:

    import torchio as tio
    image = tio.ScalarImage(sFileName)
    resample = tio.Resample(1)
    resampled = resample(image)
    

提交回复
热议问题