We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50f8194 commit 9f16e46Copy full SHA for 9f16e46
1 file changed
pymic/transform/threshold.py
@@ -30,7 +30,7 @@ def __init__(self, params):
30
self.threshold_upper = params['ChannelWiseThreshold_threshold_upper'.lower()]
31
self.replace_lower = params['ChannelWiseThreshold_replace_lower'.lower()]
32
self.replace_upper = params['ChannelWiseThreshold_replace_upper'.lower()]
33
- self.inverse = params['ChannelWiseThreshold_inverse'.lower()]
+ self.inverse = params.get('ChannelWiseThreshold_inverse'.lower(), False)
34
35
def __call__(self, sample):
36
image= sample['image']
0 commit comments