Page MenuHomePhabricator

[statistics] Statistics with segmentations are not automatically updated if segmentation is changed.
Closed, ResolvedPublic


In the image statistics view statistics of/with segmentations are not updated if the segmentation is changed.

Reason: Segmentation tools do modify the segmentation image, but the modification of the data does not automatically mark the node as modified. The statistics data generator does listen to node modifications and thus misses the change of the segmentations.
Planar figures have no problem as the planar figure interaction does also modify the node.

It is a question very simelar to T22322: Changing a renderer-specific property list of a data node does not modify the data node, should modifying the data always modify the node?

If yes: this task is automatically solved if the modification is correctly handled (T27307).
If no: What is the proper solution?
a) the generator should register/ observer for all data instances of nodes it should watch?
b) add the node->Modified() somewhere in the segmentation tools or views?

Revisions and Commits

Restricted Differential Revision
Restricted Differential Revision

Event Timeline

floca triaged this task as High priority.Apr 12 2020, 1:26 PM
floca created this task.
floca moved this task from Backlog to MITK Meeting on the Request for Discussion board.
floca moved this task from Backlog to Segmentation on the MITK (2020) board.
kislinsk moved this task from Segmentation to Statistics on the MITK (2020) board.Apr 16 2020, 9:19 AM

Discussion result:
For this concrete problem we will mitigate by introducing Modified() calls for the nodes in the tools, simelar to how the planarfigure nodes are modfified by the planarfigure interactor when they are changed.
A more thorough solution as discussed T27307 takes more time and is not realistic for the next release.
Depending T272ß7 it could well be that the workarround can/will be removed at a later point.

floca claimed this task.Wed, May 20, 9:18 PM
nolden renamed this task from [statistics] Statistics with segmentations are not automatically actualized if segmentation is changed. to [statistics] Statistics with segmentations are not automatically updated if segmentation is changed..Sun, May 24, 9:02 PM