Skip to content

[FEATURE] Adjustment for CT image defacing #166

@nicmuenster

Description

@nicmuenster

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions