Skip to content
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

handle out of plane segmentation better #1345

Closed
pieper opened this issue Jan 3, 2020 · 10 comments
Closed

handle out of plane segmentation better #1345

pieper opened this issue Jan 3, 2020 · 10 comments
Labels
IDC:candidate Possible feature requests for discussion, and if we agree, they can be relabeled IDC:priority v2-legacy OHIF v2

Comments

@pieper
Copy link
Member

pieper commented Jan 3, 2020

Request

These kidney and tumor segmentations in TCIA should be displayable in IDC:
https://wiki.cancerimagingarchive.net/pages/viewpage.action?pageId=61081171

Here's an example of one in OHIF sandbox:

https://idc-sandbox-000.firebaseapp.com/projects/idc-sandbox-000/locations/us-central1/datasets/sdp-dev/dicomStores/KiTS/study/1.3.6.1.4.1.14519.5.2.1.6919.4624.208465220391024702985828804865

They are not currently displayed because the SEG are coronal but the CT is axial, leading to this message in the console:

This segmentation object is not in-plane with the source data. Bailing out of IO. It'd be better to render this with vtkjs.

What feature or change would you like to see made?

Would be better to give a user-level dialog explaining why the seg isn't displayed.

Maybe better offer to reformat the seg in the plane of the image.

Why should we prioritize this feature?

It's a fairly common use case (or at least it comes up often enough.

@pieper pieper added Community: Request ✋ IDC:priority Items that the Imaging Data Commons wants to help sponsor labels Jan 3, 2020
@pieper
Copy link
Member Author

pieper commented Jan 3, 2020

Here's an example of what one of these datasets should look like:

image

@JamesAPetts
Copy link
Member

Its fun to see my "TODO" warnings from the last project week in Gran Canaria getting hit haha.

Maybe better offer to reformat the seg in the plane of the image.

That is interesting, I originally thought we'd just render it "as is" with vtkjs, but that might cause more problems than it solves.

Right now we load these SEGs into a labelmap in cornerstone, and vtkjs piggy backs off this whilst rendering. This has the benefit of preventing posible duplication and makes book keeping easier.

We could either resample as you suggest and keep doing this, or we can add another route and display the SEG as is in vtkjs. The latter sounds cleaner, but it'd be annoying to limit the user to not see the segs in cornerstone.

Any idea how we could easily convery this to the user @dannyrb ?

@pieper
Copy link
Member Author

pieper commented Jan 6, 2020

Displaying off-axis seg only in vtk and not in cornerstone seems like an okay workaround from my perspective, at least for now. Resampling is also okay, but since it's lossy in general It's not my favorite option.

@stale
Copy link

stale bot commented Feb 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@JamesAPetts
Copy link
Member

SEG are coronal but the CT is axial

I must of originally glazed over this, if its not oblique we can "just" rotate this and get it in cornerstone and everything else should just work (i.e. 2D and 3D). For obliques we will really have to just display them out of plane. I'll try and get this to work.

@JamesAPetts
Copy link
Member

Moving this back to Candidate:

  • We now show messages that oblique + orthogonal-but-not-in-acquisition-direction SEGs can't be loaded.

  • We would like to actually deal with the above cases, but its not important for the IDC MVP.

@JamesAPetts JamesAPetts added IDC:candidate Possible feature requests for discussion, and if we agree, they can be relabeled IDC:priority and removed Community: Request ✋ IDC:priority Items that the Imaging Data Commons wants to help sponsor labels Jun 15, 2020
@pieper
Copy link
Member Author

pieper commented Jun 15, 2020

this is definitely on the right track - but there seems to be an infinite loop of error boxes showing up when I load the study. Do you get the same thing?

@pieper
Copy link
Member Author

pieper commented Jan 14, 2021

This should be addressed as part of the update to the core off screen rendering functionality. Related to #2238

@sedghi sedghi removed the Story 🙌 label Jan 11, 2023
@igoroctaviano igoroctaviano added the v2-legacy OHIF v2 label May 30, 2023
@sedghi
Copy link
Member

sedghi commented Oct 12, 2023

@igoroctaviano @fedorov Do you think this is still valid?

@fedorov
Copy link
Member

fedorov commented Oct 13, 2023

No, I think this can be closed.

@fedorov fedorov closed this as completed Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IDC:candidate Possible feature requests for discussion, and if we agree, they can be relabeled IDC:priority v2-legacy OHIF v2
Projects
Status: Done
Development

No branches or pull requests

7 participants