nii.qc.wm2max: White Matter-to-Maximum Ratio

Description Usage Arguments Value Author(s)

View source: R/nii.qc.wm2max.R

Description

Calculate the WM2MAX ratio, defined as the maximum intensity found in the volume w.r.t. the mean value of the white matter tissue. Values close to 1.0 are better.

Usage

1
nii.qc.wm2max(img.nii, img.vol=1L, wm.nii, wm.vol=1L, wm.dir="gt", wm.thresh=0)

Arguments

img.nii

Full directory listing to desired nifti image (unzipped)

img.vol=1L

For multi volume images; an integer indicating the volume to load (1..N)

wm.nii

Full directory listing to desired nifti image to use for WM masking (unzipped). Must be identical pixel dimensions to base image.

wm.vol=1L

For multi volume images; an integer indicating the volume to load (1..N)

wm.dir="gt"

Direction to threshold the mask image to generate the desired ROI. Options include ("gt") [>] Default, "ge" [>=], "lt" [<], "le" [<=], "eq" [==]

wm.thresh=0

Value at which to threshold the mask image to generate an ROI. E.g., for binary masks, where the value 1 indicates the ROI, default of >0, will generate the appropriate mask

Value

a numeric value indicating WM2MAX

Author(s)

Timothy R. Koscik <timkoscik+niiqc@gmail.com>


TKoscik/nifti.qc documentation built on May 6, 2019, 4:30 p.m.