prepare to return values

antsrMetricInitialize(metric)

Arguments

metric

an 'antsrMetric'

Note

must call this after setting up object, before getting values back

Examples

x <- antsImageRead(getANTsRData("r16"))
y <- antsImageRead(getANTsRData("r30"))
z <- getMask(y)
metric <- antsrMetricCreate(x, y, type = "MeanSquares")
antsrMetricSetMovingImageMask(metric, z)
antsrMetricInitialize(metric)
#> [1] NA