imageSimilarity.Rd
measure similarity between two images
imageSimilarity(
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
)
the fixed antsImage
the moving antsImage
image metric to calculate
mask for the fixed image
mask for the moving image
sampling strategy, default if full sampling
Full sampling
percentage of data to sample when calculating metric
the number of bins for histogram metrics
neighborhood radius of ANTSNeighborhoodCorrelation
value of image to image metric
x <- antsImageRead(getANTsRData("r16"))
y <- antsImageRead(getANTsRData("r30"))
metric <- imageSimilarity(x, y, type = "MeanSquares")