class_docstr: Template class
class_docstr_tok: ["Template","class"]
code: def __init__(self, shape, renormalize=False, dist=None):
      self.shape = shape
      self.J, self.I = np.indices(shape)
      self.renormalize = renormalize
      if dist is None:
          self.dist = None
      else:
          self.dist = dist.copy()
  
imports: import numpy
  from scipy.ndimage import gaussian_filter
  from ._registration import _L1_moments
label_desc: Use image node_id 1 to create a new SimilarityMeasure object  with example: obj = SimilarityMeasure(shape, renormalize, dist)