Page MenuHomePhabricator

2D Nrrd / PIC images not loadable anymore
Closed, ResolvedPublic

Description

Problems with most 2D image files! Loading jpg, png is working.

But 2D pic / nrrd / dicom files cause problems.

You find images under: T:\3M3 Demodaten\GeneralTestingData

Event Timeline

For "2dplane.nrrd": according to the file the matrix looks like that:

-0.22183952729298895 0
0.30907972662711813 0

This means, that the spacing, which is (propably) read out of the matrix, is
y-spacing = 0
This could screw up things.

Anway, an error message would be better than just a crash.

That 2d nrrd file was created by saving a 2d image with a 3D geometry (3d space rotation, x,y,z).

rotation and saving of 2D images had a bug which was fixed.

Still, there should be check for loaded images, to see if the geometry informations are valid