-
Notifications
You must be signed in to change notification settings - Fork 82
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 retrieve pixel data #63
Comments
Thank you for your interest! That is a planned feature. #31 (See also the roadmap) I hope to get around it within the next few months, it is up on my priority list along with lazy loading capabilities. For the time being, one would need to fetch the image related data elements from the object and construct the multidimensional array manually. |
It is now possible to retrieve the pixel data as an ndarray or an image value via the API in the pixeldata crate. You may keep track of development around this crate in #125. |
Hi, do you have any suggestion on how to add
but couldn't build it like that. |
Hi @desprit , it is in the dicom-rs repo now in the main branch. So: |
Sorry for the delay. Yes, according to the Cargo guide, this should work: dicom-pixeldata = { git = "https://github.com/Enet4/dicom-rs" } |
Thank you thank you, I will give it a try! |
I was able to build with just cargo. But I'm using
Since it is only happening with p.s. to make it work with just cargo I installed |
@desprit You are correct. Since the crate depends on native bindings in its current state, it cannot be used in a wasm environment (maybe possible but the process is very finicky). I have filed #121 which would allow users to build this part of the library without |
@Enet4 I see... Thank you for the answer! Would be really good to have wasm-compatible version but I understand that the amount of work is likely quite huge. Our team is trying to integrate |
Yes, I understand that working with pixel data is one of the long awaited features in DICOM-rs (so is lazy DICOM object loading, because this would make working with high-demand modalities feasible), and as such I am definitely interested in pushing progress on these fronts! #121 should hopefully not be so complicated to resolve. At this stage, the plan is not to replace all image encodings supported by GDCM with Rust implementations, but to let users consume this API with a smaller subset of supported modalities, namely those which do not require that much conversion. Native MONOCHROME2 is already in, and MONOCHROME1 and RGB are highly desirable (#118 #119). |
Apologies for the likely naive question, but is there a way to retrieve the PixelData from a DICOM, such that it could be opened with the
image
crate or something similar?Thanks!
The text was updated successfully, but these errors were encountered: