Page MenuHomePhabricator

4D Pointset sometimes not properly loaded
Closed, ResolvedPublic

Description

When loading a 4D pointset from a mps file (mitk pointset), the last timesteps are ignored if they do not contain points.

e.g.

Pointset A contains 5 timesteps:
ts 0: 3 points
ts 1: 0 points
ts 2: 5 points
ts 3: 6 points
ts 4: 0 points

When you load this pointset, the loaded PS will only have 4 timesteps!

example file attached

Event Timeline

The issue is fixed. Currently a unit test is generated to test the class.

Unit test added. This issue is fixed ad can be pushed to master once the core modification flag is set!

[84eb08]: Merge branch 'bug-10426-4DPointSets'

Merged commits:

2012-01-18 13:38:53 Sven Mersmann [a20d8b]
Adding some test cases to the unit test. Set the mitkAddCustomModuleTest macro for the unit test


2012-01-11 17:32:38 Sven Mersmann [358cd0]
Changed the behavior whe nempty timesteps are read and added the unit test.

[a85b7d]: Merge branch 'bug-10426-4DPointSets'

Merged commits:

2012-01-18 17:49:00 Sven Mersmann [8d9092]
COMP: Added test data to MITK-DATA repository.

[2886d1]: Merge branch 'bug-10426-4DPointSets'

Merged commits:

2012-01-18 19:04:00 Sven Mersmann [855e1c]
COMP: temporary outcomment mitkSurfaceTest