docstr: This is called by the optimizer just after setting the moving image
  
  This method allows the metric to compute any useful
  information from knowing how the current static image was generated
  (as the transformation of an original static image). This method is
  called by the optimizer just after it sets the static image.
  Transformation will be an instance of DiffeomorficMap or None if
  the original_moving_image equals self.moving_image.
  
  Parameters
  ----------
  original_moving_image : array, shape (R, C) or (S, R, C)
      original image from which the current moving image was generated
  transformation : DiffeomorphicMap object
      the transformation that was applied to the original image to generate
      the current moving image
docstr_tok: ["This","is","called","by","the","optimizer","just","after","setting","the","moving","image","This","method","allows","the","metric","to","compute","any","useful","information","from","knowing","how","the","current","static","image","was","generated","(","as","the","transformation","of","an","original","static","image",")",".","This","method","is","called","by","the","optimizer","just","after","it","sets","the","static","image",".","Transformation","will","be","an","instance","of","DiffeomorficMap","or","None","if","the","original_moving_image","equals","self.moving_image",".","Parameters","--","--","--","--","--","original_moving_image",":","array",",","shape","(","R",",","C",")","or","(","S",",","R",",","C",")","original","image","from","which","the","current","moving","image","was","generated","transformation",":","DiffeomorphicMap","object","the","transformation","that","was","applied","to","the","original","image","to","generate","the","current","moving","image"]
code: def use_moving_image_dynamics(
      self, original_moving_image, transformation
  ):
      r"""This is called by the optimizer just after setting the moving image
  
      This method allows the metric to compute any useful
      information from knowing how the current static image was generated
      (as the transformation of an original static image). This method is
      called by the optimizer just after it sets the static image.
      Transformation will be an instance of DiffeomorficMap or None if
      the original_moving_image equals self.moving_image.
  
      Parameters
      ----------
      original_moving_image : array, shape (R, C) or (S, R, C)
          original image from which the current moving image was generated
      transformation : DiffeomorphicMap object
          the transformation that was applied to the original image to generate
          the current moving image
      """
      pass
  
imports: import abc
  import numpy
  from numpy import gradient
  from scipy import ndimage
  from dipy.align import vector_fields
  from dipy.align import sumsqdiff
  from dipy.align import crosscorr
  from dipy.align import expectmax
  from dipy.align import floating
label_desc: Use image node_id 7 for calling the SimilarityMetric obj's underlying member method code with example usage: obj.use_moving_image_dynamics(original_moving_image, transformation) without return types