imgdatamat: Creat Data Matrix Function

View source: R/src.r

imgdatamatR Documentation

Creat Data Matrix Function

Description

This is a function that creates a data matrix for analysis from a file saved in image format.

Usage

imgdatamat(
  imgfnames,
  mask = NULL,
  ROI = FALSE,
  atlas = NULL,
  atlasdataset = NULL,
  ROIids = NULL,
  zeromask = FALSE,
  schange = FALSE,
  ...
)

Arguments

imgfnames

a vector for (nifti) file names to be used.

mask

a vector for brain mask data.

ROI

a logical for roi data set.

atlas

an array for the atlas.

atlasdataset

a matrix or data.frame. colnames shold include "ROIid" and "ROIname".

ROIids

a vector

zeromask

a logical for masking voxel with all zeros.

schange

a logical for change dimension.

...

further arguments passed to or from other methods.

Details

imgdatamat requires image file names.

Value

S

data matrix

brainpos

binary brain position.

imagedim

three dimensional vector for image dimension

Examples

# imgfnames1 = c("img1.nii", "img2.nii")
# imgdata = imgdatamat(imgfnames1)


mand documentation built on Sept. 13, 2023, 1:06 a.m.