set image sampling strategy and rate

antsrMetricSetSampling(metric, sampling.strategy, sampling.percentage)

Arguments

metric

an 'antsrMetric'

sampling.strategy

sampling strategy, default if full sampling

  • noneFull sampling

  • random

  • regular

sampling.percentage

percentage of data to sample when calculating metric

Note

After calling this, must call antsrMetricInitialize(metric)

Examples

x <- antsImageRead(getANTsRData("r16"))
y <- antsImageRead(getANTsRData("r30"))
metric <- antsrMetricCreate(x, y, type = "MeanSquares")
antsrMetricSetSampling(metric, "random", 0.4)