I have an NRRD file that is incorrectly loaded into ImFusion Suite - the transformation is interpreted incorrectly.
In the log I get the following warning:
[NrrdIoAlgorithm] Left-handed coordinate system detected - the image will be flipped and the matrix adjusted but the position might be invalid
I know that it is loaded incorrectly, because when I load it into 3D Slicer it is positioned correctly (in relation to other files to which it was registered).
I cannot share the entire file, but here are two headers, the first one of the file that throws the warning and the second one that is loaded correctly:
Header with warning:
NRRD0004 # Complete NRRD file format specification at: # http://teem.sourceforge.net/nrrd/format.html type: unsigned char dimension: 3 space: left-posterior-superior sizes: 729 591 243 space directions: (0.11100035736632863,0.026792906566049265,-0.051155831723357428) (-0.057086624062644017,0.034189423249321414,-0.10596253577575093) (0.034767127851120398,-0.4682857694387545,-0.16982566714365657) kinds: domain domain domain encoding: gzip space origin: (-19.667027446466108,5.4880202050532212,107.17165348747228)
Header without warning:
NRRD0004 # Complete NRRD file format specification at: # http://teem.sourceforge.net/nrrd/format.html type: unsigned char dimension: 3 space: left-posterior-superior sizes: 721 592 93 space directions: (-0.15418604016304016,0.018321799114346501,0.021520091220736507) (-0.015584020875394351,0.04445988312363628,-0.14950789511203777) (-0.075362674891948686,-0.47687250375747692,-0.13395439088344568) kinds: domain domain domain encoding: gzip space origin: (72.130981445312514,-32.905590057373033,-38.11106109619142)
I see that the determinant of the ‘problematic’ case is negative (so left-handed system) but in this case enforcing a right-handed one is incorrect. Is there a way to turn off this enforcing?