deid icon indicating copy to clipboard operation
deid copied to clipboard

"stop_before_pixels" argument for "get_identifiers"

Open allanhummer opened this issue 4 years ago • 1 comments

Sometimes image information of the DICOM is not needed when processing the headers (e.g. for grouping multiple measurements of the same patient). Especially when dealing with large quantities of DICOMs, it would be very useful to omit the pixel array to save a lot of memory.

read_file (dcmread), which is used by deid already has a "stop_before_pixels" argument. It would be great to access this directly when using "get_identifiers".

Thanks for providing this helpful toolbox!

allanhummer avatar Oct 16 '20 09:10 allanhummer

Sure, that sounds easy to do! Here is a PR https://github.com/pydicom/deid/pull/164 for you to test, and I've added some questions I'm interested in your feedback on.

vsoch avatar Oct 16 '20 16:10 vsoch