dboun / MultiPatientImageProcessing

Bulk processing of medical images
1 stars 1 forks source link

3D view on Linux #7

Closed dboun closed 5 years ago

dboun commented 5 years ago

3D view (in MitkImageViewer) doesn't show up for me on Linux. The other 3 work fine

ashishsingh18 commented 5 years ago

This issue is now fixed. This happened because we removed all nodes on subject changed. We cannot be removing all nodes. Some of these are MITK specific and need to be there.

TODO: Datamanager must have a list of all ids for a specific subject. Based on that the nodes should be removed.

dboun commented 5 years ago

It's definitely exactly what you said! I haven't looked at how you fixed it yet, but I noticed there were some extra nodes when we delete them, but I didn't look into it much

Each of our (mitk) nodes has as name it's data id converted from long to char[]

DataManager has a function to fetch all iids of a subject called

std::vector<long> DataManager::GetAllDataIdsOfSubject(long)

where the parameter is the uid (subject id)

So we just need to check if the node name converted to long is that