pydicom / deid

best effort anonymization for medical images using python
https://pydicom.github.io/deid/
MIT License
140 stars 43 forks source link

adding keepcoordinates to allow inverse specification for clean #143

Closed vsoch closed 4 years ago

vsoch commented 4 years ago

We currently have an issue that the Ultrasound regions indicate a region to keep, while the CTP regions indicate a region to clean. To allow for both to exist, I'm adding a new field "keepcoordinates' to the deid.dicom. This indicates that we want to keep the value (meaning filling the mask first with 1 instead of 0, so that when it's multiplied it is kept). This is part 1 of work to address #142.