antsrMetricSetMovingTransform: antsrMetricSetMovingTransform

View source: R/antsrMetric_class.R

antsrMetricSetMovingTransformR Documentation

antsrMetricSetMovingTransform

Description

set transform for moving image

Usage

antsrMetricSetMovingTransform(metric, transform)

Arguments

metric

an 'antsrMetric'

transform

an 'antsrTransform'

Examples

x <- antsImageRead(getANTsRData("r16"))
y <- antsImageRead(getANTsRData("r30"))
metric <- antsrMetricCreate(x, y, type = "ANTSNeighborhoodCorrelation")
tx <- createAntsrTransform(precision = "double", type = "AffineTransform", dimension = 2)
setAntsrTransformParameters(tx, c(0, -1, 1, 0, 0, 0))
setAntsrTransformFixedParameters(tx, c(128, 128))
antsrMetricSetMovingTransform(metric, tx)
antsrMetricGetValue(metric)

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