-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently the defacing works by multiplying a mask consisting of 1s and 0s to the image. However, in the case of CT images, the intensity range can have a minimum that is far below 0, which can lead to this newly masked region being portrayed very differently to the actual background. Therefore it might worth considering to allow to define a value that is inserted into this region.
This could for example be done by changing the line
masked_data = input_data * mask_data
to
masked_data = input_data * mask_data + ((1 - mask_data) * self.fill_value)
where fill_value is decided upon during the initialization of the defacer.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request