HomePhabricator
Diffusion MITK 9543f93caadb

T29185 Refactor AutoSegmentationTool classes

Description

T29185 Refactor AutoSegmentationTool classes

Summary:
Merged class AutoSegmentationTool with AutoSegmentationWithPreviewTool
+ Fixed T29183

Fixed reinitializing of LabelSetImage (avoided addition of unnecessary layer)

BREAKING: Added support of multiple labels to AutoSegmentationWithPreviewTool Class now expects that preview is a LabelSetImage. Adapt: Custom tool classes must adapt signature of AutoSegmentationWithPreviewTool::DoUpdatePreview

BREAKING: Removed AutoMLSegmentationWithPreviewTool. Why: The class AutoSegmentationWithPreviewTool now directly supports multiple labels. How to adapt: Derive from class AutoSegmentationWithPreviewTool. Refactor the function ComputeMLPreview into...

...DoUpdatePreview. See OtsuTool3D for example.

+ Fixed T28866

BREAKING: Renamed several tool classes Reason: The naming for AutoSegmentationWithPreviewTool, QmitkAutoSegmentationToolGUIBase and QmitkAutoSegmentationToolGUIBase are not fitting any more and were changed to reflect its meaning better. How to...

...adapt: Rename as follows AutoSegmentationWithPreviewTool -> SegWithPreviewTool QmitkAutoSegmentationToolGUIBase -> QmitkSegWithPreviewToolGUIBase QmitkAutoMLSegmentationToolGUIBase -> QmitkMultiLabelSegWithPreviewToolGUIBase

Test Plan: code review, check lists/UI testing

Reviewers: O1 MITK Reviewer Group I, kislinsk

Reviewed By: O1 MITK Reviewer Group I, kislinsk

Subscribers: kislinsk, a178n

Maniphest Tasks: T29183, T28866

Differential Revision: https://phabricator.mitk.org/D656