quantMask: Compute the Mask Vector

Description Usage Arguments Value Examples

Description

This function creates a mask vector for an image using a user specified quantile.

Usage

1
quantMask(x,quant=.7)

Arguments

x

x can be a 4D/3D array, 2D matrix or 1D vector representing an image.

quant

The quantile level used for masking. Defaults to .7.

Value

returns a binary vector of zeros and ones.

Examples

1
2
arr<-array(rnorm(10*10*10*10),dim=c(10,10,10,10))
mask<-quantMask(arr,.7)

FIACH documentation built on May 1, 2019, 8:02 p.m.

Related to quantMask in FIACH...