antsrMetricSetFixedImageMask: antsrMetricSetFixedImageMask

View source: R/antsrMetric_class.R

antsrMetricSetFixedImageMaskR Documentation

antsrMetricSetFixedImageMask

Description

set fixed image for image to image metric

Usage

antsrMetricSetFixedImageMask(metric, image)

Arguments

metric

an 'antsrMetric'

image

the fixed '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 <- getMask(x)
antsrMetricSetFixedImageMask(metric, z)

stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.