-
Notifications
You must be signed in to change notification settings - Fork 292
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 to export and import segmentation in stack? #1059
Comments
we haven't done the import into stack yet, we are busy unfortunatelly with a lot of new contour segmentations. I get free next week and I will triage this |
+1 for this issue. Highly needed |
Hello dear @sedghi Can you give some time estimate for this feature? |
Sorry I'm not understanding the question, I need more context |
@sedghi i have stack viewport with cornerstone3d library.
|
Hi Alireza @sedghi!
The main criteria is to be able to draw segmentation -> save it on the server -> redraw it later We (with dima9911) build it on vue js, so OHIF codebase on React doesn't help. Could you please suggest a solution? |
As I mentioned the import and export from to stack viewport in DICOM SEG format is not done yet. So right now you can only create them. If you want to save it in any format then you can get the segmentation imageId, which is inside the Next you need to grab each segmentation image ( Since labelmaps are usually sparse you can use RLE encoding to send less data over the network. |
The question regarding import is harder, DICOM SEG import into stack viewportWe are working on writing that importer Custom data from backend importYou need to create a local image and set the pixelData from the data you recieve from the server, you can use this one |
+1 to the issue importance. I'm trying to figure out the way to export / import the results of segmentation by SplineContourSegmentationTool. I might be missing something, but:
@sedghi can you advise something here? I am new to all this DICOM, medical imagery, and Cornerstone3D, thus might be missing something very basic here. It was kind of my basic assumption when signing up for a gig that if this library has segmentation tools that work on a image stack, the serialization / de-serialization of data they produce is a basic operation that should be supported... but after spending a way more time already on it than anticipated, and not being able to figure out the way, I am somewhat lost :( |
@jlopes90 While I see a msg in console I can reproduce with steps:
Although it seems not affect how to load segmentation , it just only shows a msg in console Would you have idea ? |
@tkt9k2562 I cannot reproduce the error. If it works just ignore it for now. |
@sedghi news? export segmentation stack format in dicom? |
not yet, it is on my todo list |
I already got the I've already tested an example of a "segmentation stack" edited in dcmjs. When exporting or importing the segmentation in just one frame and it works fine. But we just have to wait for the pull request to be approved in dcmjs, and here we also need to update the new version of dcmjs. Next, I update the "segmentationStack" example. |
There is another way without using this pull request dcmjs-org/dcmjs#395 How does just one frame work: Cornerstone3D.Segmentation.generateSegmentation(
[cacheImage, cacheImage],
labelmapData,
metaData
);
|
I just updated the segmentation stack example (deploy) PR #1336 |
I had done the export or import of segmentation in volume, here is the link #664
Now what's missing is stack, does anyone know?
The text was updated successfully, but these errors were encountered: