set moving image for image to image metric

antsrImageToImageMetric.SetMovingImageMask(metric, image)

Arguments

metric

an 'antsrImageToImageMetric'

image

the moving 'antsImage'

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 = getMask(y) antsrImageToImageMetric.SetMovingImageMask(metric, z)
#> [1] NA