code: def cdilate(f, g, Bc, n=1):
      f = np.minimum(f, g)
      for i in range(n):
          prev = f
          f = np.minimum(dilate(f, Bc), g)
          if np.all(f == prev):
              break
      return f
  
file_path: mahotas/mahotas/tests/pymorph_copy.py
imports: import numpy
label_desc: Use image node_id 8 for calling a global function with example usage: cdilate(f, g, Bc, n) and returns: f