-
Notifications
You must be signed in to change notification settings - Fork 597
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
Example of DICOM load, edit and download edited version, issue with DicomWriter #1695
Comments
Hi, if you are expecting to save the drawn shape with the dicom, this will not work. The idea is to save it as a separate file. I'm working on it for #1020, the idea is to replace the current json state file by a DICOM one. |
Thank you for the reply @ivmartel!
Oh I see, I didn't catch that. So to achieve my goal (draw a shape and store it for the next load), couple related questions:
Thanks! |
|
Aah, thanks a lot! Will try to work with those. Closing this issue then for the time being
My goal was to actually overwrite the pixels in the image with an opaque square, so it would have been ideal to actually alter the pixels in the new dicom image. But I totally understand this is not an available use-case today. |
I created #1705 for image anonymisation. |
Helloo!
I'm attempting to complete a rather simple task but I seem to be stuck, I'm certainly missing something quite obvious. Thank you in advance 🙏
Task:
loadURLs
.I prepared a JSFiddle forking one of the main examples from the docs.
Note that I omitted step 2) for the sake of simplicity; correct me if I'm misunderstanding but to achieve that one would directly edit a particular field in the metadata object of type
{string, DataElement
}.The issue in the example is at step 4), particularly when calling
Error:

What the example does is get the metadata from dataId=0, then pass it to☺️
getBuffer
asdicomElements
, so I reckon I'm not sending the right argument here.If you think it can be informative, I'd be happy to submit a PR to the repo with a new example once I can get the whole thing working (both the vanilla examples & react which is what I'm working with)
Thanks for the lib & help!
PS. Also attempted it via explicit
XHTMLRequest
arraybuffer
parsing, but then one needs to implement the image + layer + view creation logic, which is slightly more tedious IIUC.The text was updated successfully, but these errors were encountered: