Unable to Import Lumafield NRRD file

Operating system: Windows 10
Slicer version: 5.8.1
Expected behavior: Load NRRD file as volume
Actual behavior: Error loading data. Does not recognize NRRD file.

We use a X-Ray CT from a local startup called Lumafield. We lease a CT machine from them and their web-based software automates the reconstruction for us, along with other analysis features. One of their features is the ability to export scans as NRRD files. However, I am u nable to load any of the NRRD files into Slicer (~85MB).

I’ve attached the error log and the header info from the NRRD file below:

==== Error Log ======

CanReadFile failed: [nrrd] nrrdLoad: trouble reading “C:/Users/MichaelChon/Downloads/2dee31ef-f170-4b82-ac12-e58663efae71.nrrd”

[nrrd] nrrdRead: trouble

[nrrd] _nrrdRead: trouble reading NRRD file

[nrrd] _nrrdFormatNRRD_read: trouble parsing space directions info |(0,0,1) (0,1,0) (1,0,0)|

[nrrd] _nrrdReadNrrdParse_space_directions: don’t yet have a valid space dimension

CanReadFile failed: [nrrd] nrrdLoad: trouble reading “C:/Users/MichaelChon/Downloads/2dee31ef-f170-4b82-ac12-e58663efae71.nrrd”

[nrrd] nrrdRead: trouble

[nrrd] _nrrdRead: trouble reading NRRD file

[nrrd] _nrrdFormatNRRD_read: trouble parsing space directions info |(0,0,1) (0,1,0) (1,0,0)|

[nrrd] _nrrdReadNrrdParse_space_directions: don’t yet have a valid space dimension

vtkITKArchetypeImageSeriesReader::ExecuteInformation: Cannot open C:/Users/MichaelChon/Downloads/2dee31ef-f170-4b82-ac12-e58663efae71.nrrd. ITK exception info: error in unknown: Could not create IO object for reading file C:/Users/MichaelChon/Downloads/2dee31ef-f170-4b82-ac12-e58663efae71.nrrd

Tried to create one of the following:

BMPImageIO

BioRadImageIO

DCMTKImageIO

GDCMImageIO

GiplImageIO

JPEGImageIO

LSMImageIO

MGHImageIO

MINCImageIO

MRCImageIO

MetaImageIO

NiftiImageIO

NrrdImageIO

PNGImageIO

ScancoImageIO

StimulateImageIO

TIFFImageIO

VTKImageIO

MRMLIDImageIO

You probably failed to set a file suffix, or

set the suffix to an unsupported type.

Algorithm vtkITKArchetypeDiffusionTensorImageReaderFile (000001C338AB2030) returned failure for request: vtkInformation (000001C347E2E8B0)

Debug: Off

Modified Time: 218680

Reference Count: 1

Registered Events: (none)

Request: REQUEST_INFORMATION

FORWARD_DIRECTION: 0

ALGORITHM_AFTER_FORWARD: 1

CanReadFile failed: [nrrd] nrrdLoad: trouble reading “C:/Users/MichaelChon/Downloads/2dee31ef-f170-4b82-ac12-e58663efae71.nrrd”

[nrrd] nrrdRead: trouble

[nrrd] _nrrdRead: trouble reading NRRD file

[nrrd] _nrrdFormatNRRD_read: trouble parsing space directions info |(0,0,1) (0,1,0) (1,0,0)|

[nrrd] _nrrdReadNrrdParse_space_directions: don’t yet have a valid space dimension

===== NRRD Header ======

NRRD0005
type: uint8
dimension: 3
sizes: 367 355 764
endian: little
encoding: gzip
space directions: (0,0,1) (0,1,0) (1,0,0)
space origin: (0,0,0)
old min: 0.0
old max: 0.09155961871147156

It seems that the Lumafield software creates a file that does not follow the NRRD standard. It should be a very easy fix for Lumafield, just report the issue to them. They can ask any questions or help here if something is unclear.

Thanks Andras. I think that helps narrow down the problem.

I read through the NRRD specifications and think I have a hotfix for the time being. Section 4 (Space and Orientation Information) requires either a “space” or “space orientation” field and neither were in the header of the Lumafield NRRD file. I edited the header to include “space: left-anterior-superior” (arbitary) under “dimension” and that was sufficient to load the data!

1 Like

Just make sure that the loaded image is correct! If the space orientation is incorrect the image loaded may be the mirror image of the correct image. Since people are roughly bilaterally symmetric, it is not necessarily obvious when an image has been mirrored. Check an image with an identifiable feature and ensure that the orientation you chose has not mirrored it. Other orientation errors may amount to rotations, which are usually obvious and not really a problem, but mirroring can be subtle and possible to miss.

Agreed,

@mchon I would recommend to let Lumafield about the problem and your workaround. They should be able to figure out how to fix this in their software and test it. If they have any question they can ask it here.

Thanks. I reached out to Lumafield and they will incorporate a fix in the next update.

In re: symmetry, I did trial the three orientations and compared to the original recon and found one that worked for me. Another approach is to set “space dimension” to 3 and edit the space directions to have the same orientation as the original model.

Thanks all for your input. It was especially helpful to know where to pinpoint the issue.

Michael

1 Like