docstr: Spatial registration of time series with no time interpolation
  
  Parameters
  ----------
  images : image or list of images
      Single or multiple input 4d images representing one or several fMRI
      runs.
  affine_class : ``Affine`` class, optional
      transformation class to use to calculate transformations between
      the volumes. Default is :class:``Rigid``
docstr_tok: ["Spatial","registration","of","time","series","with","no","time","interpolation","Parameters","--","--","--","--","--","images",":","image","or","list","of","images","Single","or","multiple","input","4d","images","representing","one","or","several","fMRI","runs",".","affine_class",":","``","Affine","``","class",",","optional","transformation","class","to","use","to","calculate","transformations","between","the","volumes",".","Default","is",":","class",":","``","Rigid","``"]
code: def __init__(self, images, affine_class=Rigid):
      """Spatial registration of time series with no time interpolation
  
      Parameters
      ----------
      images : image or list of images
          Single or multiple input 4d images representing one or several fMRI
          runs.
      affine_class : ``Affine`` class, optional
          transformation class to use to calculate transformations between
          the volumes. Default is :class:``Rigid``
      """
      self._init(images, 1.0, None, None, affine_class)
  
imports: import os
  import warnings
  import numpy
  from nibabel import io_orientation
  from nibabel.affines import apply_affine
  from ...core.image.image_spaces import as_xyz_image, make_xyz_image, xyz_affine
  from ...io.nibcompat import get_header
  from ..slicetiming import timefuncs
  from ._registration import _cspline_sample3d, _cspline_sample4d, _cspline_transform
  from .affine import Affine, Rigid
  from .optimizer import configure_optimizer, use_derivatives
  from .type_check import check_type, check_type_and_shape
label_desc: Use image node_id 1 to create a new SpaceRealign object from inherited base classes: Realign4d with example: obj = SpaceRealign(images, affine_class)