histogramMatchImage: histogramMatchImage

View source: R/histogramMatchImage.R

histogramMatchImageR Documentation

histogramMatchImage

Description

Match intensity profile with a reference image.

Usage

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(s)

NJ Tustison

Examples

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


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