docstr: This function calculates the true positive map (i.e. how many 
  reference voxels are positive)
  
  :return: TP map
docstr_tok: ["This","function","calculates","the","true","positive","map","(","i.e",".","how","many","reference","voxels","are","positive",")",":","return",":","TP","map"]
code: def __TPmap(self):
      """
      This function calculates the true positive map (i.e. how many
      reference voxels are positive)
  
      :return: TP map
      """
      self.check_binary()
      return np.logical_and(self.ref > 0.5, self.seg > 0.5).astype(
          float
      )
  
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 5 for calling the PairwiseMeasures obj's underlying member method code with example usage: obj.__TPmap() and returns: np