Make AutoSegmentationTool label aware
Summary:
Add non const option for mitk::AutoSegmentationTool::GetImageByTimeStep
Added label awareness to AutoSegmentationWithPreviewTool
This implicitly fixes the threshold tools (T29096 and T29097)
Makes picking tool label aware and improves it.
Fixes problems with overwritting other labels.
Now you can also pick from multiple other labels and the picked
elements will be added to the active labels.
Be aware if you pick from other labels the must not be locked,
other wise the lock will be ignored.
If you pick from the active label it is irrelevant if it is locked.
Make AutoMLSegmentationWithPreviewTools label and active label aware.
Fixes T29099
Added documentation and precondition checks
Fixed gcc compile errors
Fixed bug in PointSet::RemovePointAtEnd.
also fixes T29102
Deactivated the possibility to pick background. Also ensured that preview is reset if no points or no valid points are selected.
Test Plan: code review, ui testing/checklists
Reviewers: O1 MITK Reviewer Group I, kalali, O3 MITK Reviewer Group II
Reviewed By: O1 MITK Reviewer Group I, kalali, O3 MITK Reviewer Group II
Subscribers: kalali, kislinsk, s434n
Maniphest Tasks: T29102, T29099, T28526, T29097, T29096, T28982, T28991
Differential Revision: https://phabricator.mitk.org/D622