Images are converted nifti objects (from the oro.nifti package), an operation is performed using antsImageMutualInformation

mutual_information(image1, image2, ...)

Arguments

image1

Object of class nifti or character filename

image2

Object of class nifti or character filename

...

Additional arguments passed to antsImageMutualInformation

Value

Numeric

Examples

library(ANTsR) library(extrantsr) fi = getANTsRData("r16") mi = getANTsRData("r64") mival = mutual_information(fi, mi)