Match intensity profile with a reference image.

histogramMatchImage(
  sourceImage,
  referenceImage,
  numberOfHistogramBins = 255,
  numberOfMatchPoints = 64,
  useThresholdAtMeanIntensity = FALSE
)

Arguments

sourceImage

image to undergo intensity transformation.

referenceImage

image providing reference intensity profile.

numberOfHistogramBins

number of histogram levels.

numberOfMatchPoints

number of histogram match points.

useThresholdAtMeanIntensity

use a simple background exclusion criterion.

Value

source image intensity matched to reference image.

Author

NJ Tustison

Examples

sourceImage <- antsImageRead(getANTsRData("r16"), 2)
referenceImage <- antsImageRead(getANTsRData("r64"), 2)
matchedImage <- histogramMatchImage(sourceImage, referenceImage)