set moving image for image to image metric

antsrImageToImageMetric.SetMovingImage(metric, image, isMask = FALSE)

Arguments

metric

an 'antsrImageToImageMetric'

image

the moving 'antsImage'

isMask

flag indicating if input is image or mask

Note

After calling this, must call antsrImageToImageMetric.Initialize(metric)

Examples

x = antsImageRead( getANTsRData( 'r16' )) y = antsImageRead( getANTsRData( 'r30' )) metric = antsrImageToImageMetric.Create(x,y,type="MeanSquares") z = y*2 antsrImageToImageMetric.SetMovingImage(metric, z)
#> [1] NA