View source: R/antsrMetric_class.R
antsrMetricCreate | R Documentation |
create object that measures similarity between two images
antsrMetricCreate(
fixed,
moving,
type = c("MeanSquares", "MattesMutualInformation", "ANTSNeighborhoodCorrelation",
"Correlation", "Demons", "JointHistogramMutualInformation"),
fixed.mask = NULL,
moving.mask = NULL,
sampling.strategy = "none",
sampling.percentage = 1,
nBins = 32,
radius = 3
)
fixed |
the fixed antsImage |
moving |
the moving antsImage |
type |
image metric to calculate
|
fixed.mask |
mask for the fixed image |
moving.mask |
mask for the moving image |
sampling.strategy |
sampling strategy, default if full sampling
|
sampling.percentage |
percentage of data to sample when calculating metric |
nBins |
number of bins for histogram metrics (default = 32) |
radius |
radius for neighborhoo metrics (default = 3) |
value of image to image metric
x <- antsImageRead(getANTsRData("r16"))
y <- antsImageRead(getANTsRData("r30"))
metric <- antsrMetricCreate(x, y, type = "MeanSquares")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.