dpmixsim (version 0.0-9)

premask: Data preparation

Description

premask applies a pre-defined mask to a MRI slice in order to select regions of interest (ROIs) for processing

Usage

premask(slicedata, subsamp=TRUE)

Arguments

slicedata

list as output by read.sliceimg

subsamp

logical variable; if TRUE a downsampled image by a factor of 2 is used in the MCMC simulation, otherwise the full-sized image is taken. After parameter estimation, the full-sized image should be used for clustering and image segmentation. The use of downsampled images can substantially reduce runtime, with little quality degradation.

Value

xv

processed data vector

See Also

dpmixsim, readsliceimg

Examples

Run this code
# NOT RUN {
  slicedata <- readsliceimg(fbase="t1_pn3_rf0", swap=FALSE)
  x0 <- premask(slicedata, subsamp=TRUE)
  x  <- prescale(x0) 
  print(str(x))
# }

Run the code above in your browser using DataLab