View source: R/antsrMetric_class.R
antsrMetricInitialize | R Documentation |
prepare to return values
antsrMetricInitialize(metric)
metric |
an 'antsrMetric' |
must call this after setting up object, before getting values back
x <- antsImageRead(getANTsRData("r16"))
y <- antsImageRead(getANTsRData("r30"))
z <- getMask(y)
metric <- antsrMetricCreate(x, y, type = "MeanSquares")
antsrMetricSetMovingImageMask(metric, z)
antsrMetricInitialize(metric)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.