corr_img: Neighborhood Correlation Image

Description Usage Arguments Value Examples

View source: R/corr_img.R

Description

Calculates the neighborhood of 2 registered images, and then does the correlation of each neighbor with itself in the other imaging modality

Usage

1
2
3
4
5
6
7
8
corr_img(
  img1,
  img2,
  mask = NULL,
  radius = rep(1, 3),
  method = c("pearson", "spearman"),
  verbose = TRUE
)

Arguments

img1

image of class nifti, antsImage, character

img2

image of class nifti, antsImage, character

mask

Binary image of class nifti, antsImage, character. Only neighborhoods inside the mask will be taken

radius

vector of length 3 for number of voxels to go in each direction. Default is 27 neighbors (including voxel at center). Passed to getNeighborhoodInMask.

method

Type of correlation.

verbose

print diagnostic messages

Value

Object of class nifti

Examples

1
2
3
4
## Not run: 
corr_img("T1_Image.nii.gz", "FLAIR_Image.nii.gz", mask = "Mask.nii.gz")

## End(Not run)

neuroconductor/extrantsr documentation built on Sept. 28, 2020, 11:31 a.m.