You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
MaskIntensityD supports to use numpy array as a constructor argument for the mask array,
but one of the common use cases is to dynamically set the mask array from a user-specified data key
Expected behavior
the transform should support: def __init__(self, keys: KeysCollection, mask_keys: KeysCollection) where data[mask_keys] will be used as the masking array
The text was updated successfully, but these errors were encountered:
Describe the bug
MaskIntensityD supports to use numpy array as a constructor argument for the mask array,
but one of the common use cases is to dynamically set the mask array from a user-specified data key
MONAI/monai/transforms/intensity/dictionary.py
Lines 470 to 485 in 50c4659
Expected behavior
the transform should support:
def __init__(self, keys: KeysCollection, mask_keys: KeysCollection)
wheredata[mask_keys]
will be used as the masking arrayThe text was updated successfully, but these errors were encountered: