R/src.R
timeSeriesMotionCorrect.Rd
This function, by default, regularizes the total deformation field to produce a
a constrained diffeomorphic motion correction of a time series. Full custom
by passing the same parameters that one would pass to antsRegistration
.
timeSeriesMotionCorrect(fixedStaticImage, movingTimeSeries, totalSigma, flowSigma, regIterations = c(50, 50, 10), ...)
fixedStaticImage | fixed static image |
---|---|
movingTimeSeries | time series image to map to the fixed space |
totalSigma | regularization for total deformation field |
flowSigma | regularization for update deformation field |
regIterations | deformable registration iterations / multi-resolution parameters |
... | parameters to pass to antsRegistration |
deformed images
library( magrittr ) library( ANTsRCore ) library( ANTsR ) temp1 = resampleImage( ri(1), 4 ) temp2 = resampleImage( ri(2), 4 ) temp3 = resampleImage( ri(1), 2 ) tarspace = makeImage( c( dim( temp1 ), 2 ), spacing = c( 4, 4, 1 ) ) pdcr = mergeListToNDImage( tarspace, list( temp1, temp2 ) ) reg = timeSeriesMotionCorrect( temp3, pdcr )