docstr: This function creates the maps of connected component for the
  reference and the segmentation image using the neighborhood defined
  in self.neigh
  
  :return:
      blobs_ref: connected labeling for the reference image,
      blobs_seg: connected labeling for the segmentation image,
      init: intersection between segmentation and reference
docstr_tok: ["This","function","creates","the","maps","of","connected","component","for","the","reference","and","the","segmentation","image","using","the","neighborhood","defined","in","self.neigh",":","return",":","blobs_ref",":","connected","labeling","for","the","reference","image",",","blobs_seg",":","connected","labeling","for","the","segmentation","image",",","init",":","intersection","between","segmentation","and","reference"]
code: def _connected_components(self):
      """
      This function creates the maps of connected component for the
      reference and the segmentation image using the neighborhood defined
      in self.neigh
  
      :return:
          blobs_ref: connected labeling for the reference image,
          blobs_seg: connected labeling for the segmentation image,
          init: intersection between segmentation and reference
      """
      init = np.multiply(self.seg, self.ref)
      blobs_ref = MorphologyOps(
          self.ref, self.neigh
      ).foreground_component()
      blobs_seg = MorphologyOps(
          self.seg, self.neigh
      ).foreground_component()
      return blobs_ref, blobs_seg, init
  
imports: from __future__ import absolute_import, print_function
  import numpy
  from scipy import ndimage
  from niftynet.utilities.util_common import MorphologyOps, CacheFunctionOutput
label_desc: Use image node_id 39 for calling the PairwiseMeasures obj's underlying member method code with example usage: obj._connected_components() and returns: blobs_ref,  blobs_seg,  init