nii.qc.descriptive: Descriptive statistics on voxel intensities within an ROI

Description Usage Arguments Value Author(s)

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

Description

Descriptive statistics on voxel intensities within an ROI. Including: mean, standard deviation, median, median absolute deviation, skewness, kurtosis, 5% and 95% quantiles, and a density plot of intensities.

Usage

1
nii.qc.descriptive(img.nii, img.vol=1L, mask.nii, mask.vol=1L, mask.dir="gt", mask.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)

mask.nii

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

mask.vol=1L

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

mask.dir="gt"

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

mask.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

returns a named list with descriptors of central tendency and a density plot of image intensities within the masked region

Author(s)

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


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