set moving image for image to image metric

antsrMetricSetMovingImage(metric, image)

Arguments

metric

an 'antsrMetric'

image

the moving 'antsImage'

Note

After calling this, must call antsrMetricInitialize(metric)

Examples

x = antsImageRead( getANTsRData( 'r16' )) y = antsImageRead( getANTsRData( 'r30' )) metric = antsrMetricCreate(x,y,type="MeanSquares") z = y*2 antsrMetricSetMovingImage(metric, z)