Page MenuHomePhabricator

Nifti2 support
Open, WishlistPublic


It's currently impossible to open a Nifti2 image. I only tested on Windows 10 (MITK 2016.11 and 2018.04) but it probably affects all OS.

3526.53 core.mod.core.ioUtil ERROR: No reader available for 'path/to/nifti2.nii.gz'

I created my images with this python code

import numpy as np
import nibabel as nib

data = np.random.rand(4, 5, 6, 7).astype(np.float64)  # or any other type
affine = np.eye(4), affine), 'nifti1.nii.gz'), affine), 'nifti2.nii.gz')

I know that VTK supports it since 6.2 so I think MITK should support it.

Event Timeline

kislinsk edited projects, added MITK (2018-04-4); removed MITK.
kislinsk added a subscriber: kislinsk.

@neher Please base the fix on the releases/2018-04 branch.

kislinsk lowered the priority of this task from High to Normal.Jun 27 2019, 10:14 AM
kislinsk edited projects, added MITK; removed MITK (2018-04-4).

Using vtk as reader for non-diffusion-weighted images to circumvent this issue is, on a first glance, rather complicated. Maybe looking into ITK 5 is worth a shot.

neher lowered the priority of this task from Normal to Wishlist.Thu, Nov 18, 3:35 PM