Page MenuHomePhabricator

4D Images are not shown properly
Closed, ResolvedPublic

Description

Open a 4D Image in MITK. You can find one in

G:\home\graser\inout\sw4.dcm
or
T:\temp\4d.pic

Go through all timesteps using the image navigator. You will see, that sometimes a renderwindow will be just black.

It was working in MITK rev.
25281b1357e33ecccb49dbba6346f17648f8c56b

Now it is not working anymore.

Event Timeline

Apparently only occurs under windows

Could you try to identify the causing commit with git bisect?

only occurs on WINDOWS and in RELEASE mode

Could not find anything yet. Since a whole plane is missing, it seems like the geometry for that plane is broken. We assume it might be connected with Marcos Clone function of the geometries, since the bug appeared some time after it. Things to check:

  • Check clone method of geometries: are really ALL MEMBERS copied here?
  • Clone and compile earlier MITKs to see, which changes caused the bug (a little difficult under windows, since it takes long time)

We found the error. The class SliceGeometry3D has a member m_DirectionVector which was not properly initialzied in the constructor and copy constructor.

[2ef50b]: Merge branch 'bug-8925-4DImages'

Merged commits:

2011-08-24 18:32:44 Bastian Graser [5c8df1]
Fixed Bug by initializing the member variable in constructor and copy constructor. Also made the setter functions for it a little more intelligent.