docstr: This functions calculates the error maps from the connected components
  
  :return:
docstr_tok: ["This","functions","calculates","the","error","maps","from","the","connected","components",":","return",":"]
code: def connected_errormaps(self):
      """
      This functions calculates the error maps from the connected components
  
      :return:
      """
      blobs_ref, blobs_seg, init = self._connected_components()
      list_blobs_ref = range(1, blobs_ref[1])
      list_blobs_seg = range(1, blobs_seg[1])
      mul_blobs_ref = np.multiply(blobs_ref[0], init)
      mul_blobs_seg = np.multiply(blobs_seg[0], init)
      list_TP_ref = np.unique(mul_blobs_ref[mul_blobs_ref > 0])
      list_TP_seg = np.unique(mul_blobs_seg[mul_blobs_seg > 0])
  
      list_FN = [x for x in list_blobs_ref if x not in list_TP_ref]
      list_FP = [x for x in list_blobs_seg if x not in list_TP_seg]
      # print(np.max(blobs_ref),np.max(blobs_seg))
      tpc_map = np.zeros_like(blobs_ref[0])
      fpc_map = np.zeros_like(blobs_ref[0])
      fnc_map = np.zeros_like(blobs_ref[0])
      for i in list_TP_ref:
          tpc_map[blobs_ref[0] == i] = 1
      for i in list_TP_seg:
          tpc_map[blobs_seg[0] == i] = 1
      for i in list_FN:
          fnc_map[blobs_ref[0] == i] = 1
      for i in list_FP:
          fpc_map[blobs_seg[0] == i] = 1
      return tpc_map, fnc_map, fpc_map
  
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 41 for calling the PairwiseMeasures obj's underlying member method code with example usage: obj.connected_errormaps() and returns: tpc_map,  fnc_map,  fpc_map