set fixed image for image to image metric

antsrImageToImageMetric.SetFixedImage(metric, image)

Arguments

metric

an 'antsrImageToImageMetric'

image

the fixed '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 = x*2 antsrImageToImageMetric.SetFixedImage(metric, z)
#> [1] NA