code: def __init__(
      self, type_str="otsu_plus", multimod_fusion="or", threshold=0.0
  ):
      super(BinaryMaskingLayer, self).__init__(name="binary_masking")
      self.type_str = look_up_operations(
          type_str.lower(), SUPPORTED_MASK_TYPES
      )
      self.multimod_fusion = look_up_operations(
          multimod_fusion.lower(), SUPPORTED_MULTIMOD_MASK_TYPES
      )
  
      self.threshold = threshold
  
file_path: NiftyNet/niftynet/layer/binary_masking.py
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import scipy.ndimage
  from scipy.ndimage.morphology import binary_fill_holes
  from niftynet.layer.base_layer import Layer
  from niftynet.utilities.util_common import look_up_operations
  from niftynet.utilities.util_common import otsu_threshold
label_desc: Use image node_id 1 to create a new BinaryMaskingLayer object from inherited base classes: Layer with example: obj = BinaryMaskingLayer(type_str, multimod_fusion, threshold)