View source: R/antsrMetric_class.R
antsrMetricSetSampling | R Documentation |
set image sampling strategy and rate
antsrMetricSetSampling(metric, sampling.strategy, sampling.percentage)
metric |
an 'antsrMetric' |
sampling.strategy |
sampling strategy, default if full sampling
|
sampling.percentage |
percentage of data to sample when calculating metric |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.