mne.transforms.apply_volume_registration(moving, static, reg_affine, sdr_morph=None, interpolation='linear', verbose=None)[source]

Apply volume registration.

Uses registration parameters computed by compute_volume_registration().

movinginstance of SpatialImage

The image to morph (“from” volume).

staticinstance of SpatialImage

The image to align with (“to” volume).

reg_affinendarray of float, shape (4, 4)

The affine that registers one volume to another.

sdr_morphinstance of dipy.align.DiffeomorphicMap

The class that applies the the symmetric diffeomorphic registration (SDR) morph.


Interpolation to be used during the interpolation. Can be “linear” (default) or “nearest”.

verbosebool | str | int | None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more). If used, it should be passed as a keyword-argument only.

reg_imginstance of SpatialImage

The image after affine (and SDR, if provided) registration.


New in version 0.24.

Examples using mne.transforms.apply_volume_registration