-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate SegmentEditor #158
Comments
For now, I would just get rid of the functionalities that would duplicate what SegmentEditor already provides (if there are any). The main goal of this update is to improve maintainability of the code, and harmonize with SliceTracker. It will also be easier to add DICOM export functionality, since we will have segment terminology support, and the process of exporting can be factored out between QuantitativeReporting and this module. The only thing I can think of that we will lose is window/level effect with the rectangle ROI. But maybe we can add that to the w/l functionality you added in SliceTracker, and reuse that as a common component. |
We are not using that anyway anymore.
|
I meant. We are using the WL effect, but not with the rectangle ROI. The one that we are using in SliceTracker is implemented in SlicerProstate https://github.com/SlicerProstate/SlicerProstate/blob/master/SlicerProstate/SlicerProstateUtils/buttons.py#L195 Would be extremely simple to integrate |
Very good! Yes, I know we are not using it, but when we add PK maps, we will need it back! |
Oh I see. Well maybe we can have something similar to the button I referenced with the rectangle ROI functionality |
While the new SegmentEditor's functionalities are much superior to the old one I experienced some bugs during our last project. we tried to use it in RSNA project (50 segmentations) and for some cases on Windows, it failed to segment so we were forced to switch back to the old one. Also, I'm not sure if (Simple)ITK readers support the segmentation objects (filename.seg.nrrd). If not, you probably need to create a copy of labelmaps when saving them. |
@mehrtash was that issue with SegmentEditor reproducible? Did you look at the log? Did you use the standard or fractional segmentation when this was happening? It would be good to provide this feedback to the Queen's team. We did not experience this kind of issues, but also we did not yet use it on a large dataset.
We can save each segment into a separate file, as we do in QuantitativeReporting, in addition to saving the mult-segment seg.nrrd. |
@fedorov It was reproducible for some cases in windows. I didn't check the log. It was using the standard segmentation. I'll take a look at into those cases again and see if I can find anything in log. |
Please send us the application log (you can access logs of previous sessions in menu: Help/Report a bug) and step-by-step instructions how to reproduce the problem, preferably using sample data sets included in Slicer.
Yes, both standard ITK and VTK readers can read the saved segmentation file. It's a simple 4D image, each 3D volume is one segment. If segments are not overlapping you can convert them to a merged labelmap without losing any information and save as a 3D volume. |
This is an attempt to get rid of the "old" Editor dependency and adding a dependency to the "new" SegmentEditor.
@fedorov let me know if you have anything on your mind, that I might be missing while thinking about how to integrate it with mpReview.
What do you think? Of which functionalities can we get rid with implementing this?
The text was updated successfully, but these errors were encountered: