-
Notifications
You must be signed in to change notification settings - Fork 327
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
How do we access the labelmaps2D? #276
Comments
Hi, cornerstone3D does not have labelmap2D like cornerstone legacy had. Do you want to load a DICOM SEG? I have a big PR coming up to OHIF very soon that adds the support with OHIF v3 and cornerstone3D |
Hi Sedghi. Yes we would like to load (and save) the DICOM SEG. Can you pass along a link to your PR or what branch you are merging it into? Thanks again! |
Yes, I will post it here for you |
Hi Sedghi. I see you have created a PR for SEGs: OHIF/Viewers#3015 This is some amazing work and I am excited to review it an learn how the code works. I will close this issue and track changes from the PR. Thanks again! |
Thanks for Cornerstone as it makes the hard simple and the simple attainable!
I'm having trouble finding the
labelmaps2D
on thelabelmap3D
. I searched the Issues and didn't find any infos regarding labelmaps2D.Here is the scenario I am in:
DCMJS requires that there is a
labelmaps2D
on thelabelmap3D
sent to it by cornerstone:https://github.com/dcmjs-org/dcmjs/blob/9023d1eb9f722a68f117dedc5e9088a70d907f38/examples/createSegmentation/index.html#L155
I'm drawing a segment and getting the labelmapVolume:
const labelmaps3D = cornerstoneCore.cache.getVolume(segmentationId);
But when I pass the labelmaps3D to dcm.js:
It throws and error that
labelmaps2D.length
isundefined
:Dcm.js:
This is because there is/are no
labelmaps2D
on the labelmap:How would I acquire the labelmaps2D required by dcm.js?
The text was updated successfully, but these errors were encountered: