imageSimilarity: imageSimilarity

View source: R/imageSimilarity.R

imageSimilarityR Documentation

imageSimilarity

Description

measure similarity between two images

Usage

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
)

Arguments

fixed

the fixed antsImage

moving

the moving antsImage

type

image metric to calculate

  • MeanSquares

  • Correlation

  • ANTSNeighborhoodCorrelation

  • MattesMutualInformation

  • JointHistogramMutualInformation

  • Demons

fixed.mask

mask for the fixed image

moving.mask

mask for the moving image

sampling.strategy

sampling strategy, default if full sampling

  • noneFull sampling

  • random

  • regular

sampling.percentage

percentage of data to sample when calculating metric

nBins

the number of bins for histogram metrics

radius

neighborhood radius of ANTSNeighborhoodCorrelation

Value

value of image to image metric

Examples

x <- antsImageRead(getANTsRData("r16"))
y <- antsImageRead(getANTsRData("r30"))
metric <- imageSimilarity(x, y, type = "MeanSquares")

stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.