View source: R/antsrMetric_class.R
| antsrMetricSetFixedImageMask | R Documentation | 
set fixed image for image to image metric
antsrMetricSetFixedImageMask(metric, image)
| metric | an 'antsrMetric' | 
| image | the fixed 'antsImage' | 
After calling this, must call antsrMetricInitialize(metric)
x <- antsImageRead(getANTsRData("r16"))
y <- antsImageRead(getANTsRData("r30"))
metric <- antsrMetricCreate(x, y, type = "MeanSquares")
z <- getMask(x)
antsrMetricSetFixedImageMask(metric, z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.