-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
adding stop_before_pixels to read_file of dicom parser #164
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: vsoch <[email protected]>
Signed-off-by: vsoch <[email protected]>
Thanks for picking this up! A dictionary of arguments would certainly be a more flexible method. I also think that other arguments of dcmread like "defer_size" or "specific_tags" could be useful. I think False should be the default, as otherwise the image information would be missing if one does a simple load -> edit header -> save procedure. Not really part of core DEID, but an instance where the "stop_before_pixels" argument is also useful is here: create-dicom-csv.py |
@allanhummer two possible suggestions for this PR:
Let me know your thoughts! |
@wetzelj what are your thoughts for this PR here? I want to make sure it doesn't get too dated to make integrating hard in case you think it's useful too. But if nobody needs it, probably okay to just let be until someone asks again :) |
Hey @vsoch- On the surface, I think it's a very logical inclusion. If you don't need the pixel data, why read it? However, in my implementation, I'm not utilizing get_identifiers at all - I only use replace_identifiers. Initially, I was thinking that maybe it would be good to expose the stop_before_pixels to replace identifiers as well, but ultimately, (for my purposes) it wouldn't make sense. If we were to run with stop_before_pixels=True, since parser.dicom is what gets saved as the replaced dicom file, we'd end up with a whole mess of files that were header only, no actual images. While it won't be immediately beneficial to me, I think it would be a fine inclusion as it's currently coded in the pull request as an additional parameter on get_identifiers(), but honestly, I could go either way... merge the PR or let it sit until someone needs it. |
Yeah, I'm good to do the latter - keep here for discussion until someone needs it. Thanks @wetzelj ! |
Hi I have a question here. Thanks! |
I am not, but you could try it out! |
Signed-off-by: vsoch [email protected]
Description
Adding stop_before_pixels to the Parser, to be used by get_identifiers
Related issues: #163
Open questions