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: transforms the result dictionary into a string according to a
  specified format to be written on the result report
  
  :param fmt: Format under which the result will be written e.g '{:4f}'
  :return:
docstr_tok: ["transforms","the","result","dictionary","into","a","string","according","to","a","specified","format","to","be","written","on","the","result","report",":","param","fmt",":","Format","under","which","the","result","will","be","written","e.g","'","{",":4f","}","'",":","return",":"]
code: def to_string(self, fmt="{:4f}"):
      """
      transforms the result dictionary into a string according to a
      specified format to be written on the result report
  
      :param fmt: Format under which the result will be written e.g '{:4f}'
      :return:
      """
      result_str = ""
      for i in self.measures:
          for j in self.m_dict[i][0]():
              try:
                  result_str += "," + fmt.format(j)
              except (
                  ValueError
              ):  # some functions give strings e.g., "--"
                  print(i, j)
                  result_str += ",{}".format(j)
      return result_str
  
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 48 for calling the RegionProperties obj's underlying member method code with example usage: obj.to_string(fmt) and returns: result_str