antsrMetricSetSampling.Rd
set image sampling strategy and rate
antsrMetricSetSampling(metric, sampling.strategy, sampling.percentage)
After calling this, must call antsrMetricInitialize(metric)
x <- antsImageRead(getANTsRData("r16"))
y <- antsImageRead(getANTsRData("r30"))
metric <- antsrMetricCreate(x, y, type = "MeanSquares")
antsrMetricSetSampling(metric, "random", 0.4)