Page MenuHomePhabricator

Improve handling of Load/Save .nii.gz, .img, .img.gz, .gipl, .gipl.gz
Closed, ResolvedPublic

Description

Currently MITK (f1953dbbb0) does not enable the following:

  1. .nii.gz, .hdr, .img, .img.gz file extensions not visible in File Open dialog,

leading to having to select "all files".

  1. .hdr, .img, .img.gz not visible in File Save dialog.
  2. In QmitkCommonFunctionality, file types ending in .gz simply don't work, resulting in the error message saying you must use .pic instead of .pig.gz.

Event Timeline

clarkson added a subscriber: clarkson.

In addition, fixing this will resolve 10340. Additionally, 8790 appears to be already fixed?

Thank you for the bug report and the proposed solution.

Since most of the ITK Writers offers the possibility for file compression, we decided to enable this function by default for all images.
We hope this solution is also in your interest.

Please refer to T10650

Hey Matt,

It' me again. Actually I tried to import the mentioned extentions into MITK. By drag and drop nii.gz and img.gz images works fine. I will add these extensions to our ExtensionMap (see T10340). However, hdr.gz is actually not supported by MITK, but since this file is "only" the header of .img I suppose it does not need any compression, right?

(In reply to comment #4)

I agree. As far as I know, I would not expect to find .hdr.gz, and so I would not try to support it.