class_docstr: Calculates Dice and Jaccard's overlap measures between two ROI maps.
  The interface is backwards compatible with the former version in
  which only binary files were accepted.
  
  The averaged values of overlap indices can be weighted. Volumes
  now can be reported in :math:`mm^3`, although they are given in voxels
  to keep backwards compatibility.
  
  Example
  -------
  
  >>> overlap = Overlap()
  >>> overlap.inputs.volume1 = 'cont1.nii'
  >>> overlap.inputs.volume2 = 'cont2.nii'
  >>> res = overlap.run() # doctest: +SKIP
code: def _list_outputs(self):
      outputs = self._outputs().get()
      outputs["labels"] = self._labels
      outputs["jaccard"] = self._jaccard
      outputs["dice"] = self._dice
      outputs["volume_difference"] = self._volume
  
      outputs["roi_ji"] = self._ove_rois["jaccard"].tolist()
      outputs["roi_di"] = self._ove_rois["dice"].tolist()
      outputs["roi_voldiff"] = self._vol_rois.tolist()
      outputs["diff_file"] = os.path.abspath(self.inputs.out_file)
      return outputs
  
imports: import os
  import os.path
  import nibabel
  import numpy
  from ..None import config, logging
  from ..interfaces.base import SimpleInterface, BaseInterface, traits, TraitedSpec, File, InputMultiPath, BaseInterfaceInputSpec, isdefined
  from ..interfaces.nipy.base import NipyBaseInterface
label_desc: Use image node_id 3 for calling the Overlap obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs