class_docstr: A class for binary morphological operators
class_docstr_tok: ["A","class","for","binary","morphological","operators"]
docstr: Create a binary morphological operator
docstr_tok: ["Create","a","binary","morphological","operator"]
code: def __init__(self, lut=None, op_name=None, patterns=None):
      """Create a binary morphological operator"""
      self.lut = lut
      if op_name is not None:
          self.lut = LutBuilder(op_name=op_name).build_lut()
      elif patterns is not None:
          self.lut = LutBuilder(patterns=patterns).build_lut()
  
file_path: catboost/contrib/python/Pillow/py3/PIL/ImageMorph.py
imports: import re
  from .None import Image, _imagingmorph
label_desc: Use image node_id 1 to create a new MorphOp object  with example: obj = MorphOp(lut, op_name, patterns)