Manual coregistration
Manual coregistration tools
- mancoreg(varargin)
This function displays 2 SPM ortho-views of a
targetimage
and asourceimage
image that can be manually coregistered.USAGE:
mancoreg('targetimage', [], 'sourceimage', [], 'stepsize', 0.01)
- Parameters:
targetimage (
string
) – Filename or fullpath of the target image. If none is provided you will be asked by SPM to select one.sourceimage (
string
) – Filename or fullpath of the source image. If none is provided you will be asked by SPM to select one.stepsize (
positive float
) – step size for each rotation and translation
Manual coregistration tool
The source image (bottom graph) can be manually rotated and translated with 6 slider controls. In the source graph the source image can be exchanged with the target image using a radio button toggle. This is helpful for visual fine control of the coregistration. The transformation matrix can be applied to a selected set of volumes with the
apply transformation
button. If the transformation is to be applied to the original source file that file will also need to be selected. If the sourceimage or targetimage are not passed the user will be prompted with a file browser.The code is loosely based on
spm_image()
andspm_orthoviews()
It requires the m-file with the callback functions for the user controls (mancoregCallbacks()
).(C) Copyright 2004-2009 JH (C) Copyright 2009_2012 DSS (C) Copyright 2012_2019 Remi Gau (C) Copyright 2020 CPP BIDS SPM-pipeline developers
- mancoregCallbacks(operation)
Callback routines for
mancoreg()
: defines the different actions for the different buttons.USAGE:
mancoreg_callbacks(operation)
- Parameters:
operation (
string
) – Can be any of the following:move
,toggle_off
,toggle_on
,reset
,apply
,plotmat