imreggroupwise
Description
The imreggroupwise function uses the total variation method to
perform deformable registration of slices in a series of grayscale images. You can use this
function to reduce sliding motion between slices in a series of medical images, such as a
timeseries. Registering all slices of the series to one of the slices using deformable
registration in a for loop can introduce bias towards the artifacts of one
slice in all the slices. In contrast, the imreggroupwise function reduces
the overall range of sliding motion across all slices.
[
specifies options for the total variation method using one or more optional name-value
arguments.dispField,reg] = imreggroupwise(moving,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
To transform an image series using the displacement field dispField,
pad the image series and dispField symmetrically and then use imwarp.
padSize = [7 7]; imgSeries = padarray(imgSeries,padSize,"symmetric","both"); dispField = padarray(dispField,padSize,"symmetric","both"); warpedImgSeries = zeros(size(imgSeries)); for slice = 1:size(imgSeries,3) warpedImgSeries(:,:,slice) = imwarp(imgSeries(:,:,slice),dispField(:,:,:,slice)); end warpedImgSeries = warpedImgSeries(padSize(1)+1:end-padSize(1),padSize(2)+1:end-padSize(2),:); nanIdx = isnan(warpedImgSeries); warpedImgSeries(nanIdx) = 0;
References
[1] Vishnevskiy, Valery, Tobias Gass, Gabor Szekely, Christine Tanner, and Orcun Goksel. “Isotropic Total Variation Regularization of Displacements in Parametric Image Registration.” IEEE Transactions on Medical Imaging 36, no. 2 (February 2017): 385–95. https://doi.org/10.1109/TMI.2016.2610583.
Version History
Introduced in R2022b
