Data preparation

Description

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

Usage

1
  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

Author(s)

A. Ferreira da Silva, Universidade Nova de Lisboa, Faculdade de Ciencias e Tecnologia,
afs@fct.unl.pt.

See Also

dpmixsim, readsliceimg

Examples

1
2
3
4
5
6
7
## Not run: 
  slicedata <- readsliceimg(fbase="t1_pn3_rf0", swap=FALSE)
  x0 <- premask(slicedata, subsamp=TRUE)
  x  <- prescale(x0) 
  print(str(x))

## End(Not run)