class_docstr: Class that performs the morphological operations needed to get notably
  connected component. To be used in the evaluation
code: def __init__(self, binary_img, neigh):
      assert (
          len(binary_img.shape) == 3
      ), "currently supports 3d inputs only"
      self.binary_map = np.asarray(binary_img, dtype=np.int8)
      self.neigh = neigh
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import datetime
  import os
  import re
  from functools import partial
  import numpy
  import tensorflow
  from scipy import ndimage
  from six import string_types
label_desc: Use image node_id 1 to create a new MorphologyOps object from inherited base classes: object with example: obj = MorphologyOps(binary_img, neigh)