docstr: Sets the moving image being compared against the static one.
  
  Sets the moving image. The default behavior (of this abstract class) is
  simply to assign the reference to an attribute, but
  generalizations of the metric may need to perform other operations
  
  Parameters
  ----------
  moving_image : array, shape (R, C) or (S, R, C)
      the moving image
docstr_tok: ["Sets","the","moving","image","being","compared","against","the","static","one",".","Sets","the","moving","image",".","The","default","behavior","(","of","this","abstract","class",")","is","simply","to","assign","the","reference","to","an","attribute",",","but","generalizations","of","the","metric","may","need","to","perform","other","operations","Parameters","--","--","--","--","--","moving_image",":","array",",","shape","(","R",",","C",")","or","(","S",",","R",",","C",")","the","moving","image"]
code: def set_moving_image(
      self,
      moving_image,
      moving_affine,
      moving_spacing,
      moving_direction,
  ):
      r"""Sets the moving image being compared against the static one.
  
      Sets the moving image. The default behavior (of this abstract class) is
      simply to assign the reference to an attribute, but
      generalizations of the metric may need to perform other operations
  
      Parameters
      ----------
      moving_image : array, shape (R, C) or (S, R, C)
          the moving image
      """
      self.moving_image = moving_image
      self.moving_affine = moving_affine
      self.moving_spacing = moving_spacing
      self.moving_direction = moving_direction
  
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 6 for calling the SimilarityMetric obj's underlying member method code with example usage: obj.set_moving_image(moving_image, moving_affine, moving_spacing, moving_direction) without return types