Images are converted nifti
objects
(from the oro.nifti package), an operation is performed using
antsImageMutualInformation
mutual_information(image1, image2, ...)
image1 | Object of class |
---|---|
image2 | Object of class |
... | Additional arguments passed to
|
Numeric
library(ANTsR) library(extrantsr) fi = getANTsRData("r16") mi = getANTsRData("r64") mival = mutual_information(fi, mi)