Page MenuHomePhabricator

Nifti2 support
Closed, WontfixPublic


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.Nov 18 2021, 3:35 PM
floca added a subscriber: floca.

Is it now solved with the new release and ITK 5.x?

Unfortunately not solved. Same error.

neher removed neher as the assignee of this task.Nov 9 2022, 11:38 AM
neher added a subscriber: neher.
kislinsk added a project: Auto-closed.

Hi there! ๐Ÿ™‚

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. ๐Ÿš‘

Best wishes,
The MITK devs