dboun / MultiPatientImageProcessing

Bulk processing of medical images
1 stars 1 forks source link

MITK Tool Manager #37

Closed dboun closed 5 years ago

dboun commented 5 years ago

In 'develop' branch, I re-enabled the 'segmentation panel'. So now on the right sits a qtabwidget. It has two tabs, one being the algorithm one as in the past and the other one is for creating manual segmentations / viewing+editing existing ones.

The first tab (MLL) is the 'GeodesicTrainingGUI' module and the other one (called Segmentation panel) is just the 'MitkSegmentationTool' module. Keep in mind that the first module uses the second, so any changes you do to 'MitkSegmentationTool', transfer to 'GeodesicTrainingGUI'.

The problem is in 'MitkSegmentationTool'. Specifically the line:

this->m_ToolManager = mitk::ToolManagerProvider::GetInstance()->GetToolManager();

That means both tabs use the same instance of ToolManager(Provider?). I tried to change this to a new instance but it didn't work.

Funky things happen because of it, like creating a label in the first tab, but it gets transfered actually to the image in the second tab etc.