class_docstr: This class enables the extraction of image features (Harilick
  features) and basic statistics over a segmentation
class_docstr_tok: ["This","class","enables","the","extraction","of","image","features","(","Harilick","features",")","and","basic","statistics","over","a","segmentation"]
docstr: this calculates the integral of the segmentation (probability maps),
  the corresponding binary number of elements, the probabilistic volume
  and the binarised volume
  
  :return:
docstr_tok: ["this","calculates","the","integral","of","the","segmentation","(","probability","maps",")",",","the","corresponding","binary","number","of","elements",",","the","probabilistic","volume","and","the","binarised","volume",":","return",":"]
code: def volume(self):
      """
      this calculates the integral of the segmentation (probability maps),
      the corresponding binary number of elements, the probabilistic volume
      and the binarised volume
  
      :return:
      """
      numb_seg = np.sum(self.seg)
      numb_seg_bin = np.sum(self.seg > 0)
      return (
          numb_seg,
          numb_seg_bin,
          numb_seg * self.vol_vox,
          numb_seg_bin * self.vol_vox,
      )
  
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import numpy.ma
  import math
  import scipy.stats.mstats
  import scipy.ndimage
  from niftynet.utilities.util_common import MorphologyOps, CacheFunctionOutput
label_desc: Use image node_id 4 for calling the RegionProperties obj's underlying member method code with example usage: obj.volume() and returns: numb_seg,  numb_seg_bin,  unknown,  unknown