Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


FIACH (version 0.1.2)

quantMask: Compute the Mask Vector

Description

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

Usage

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

Run this code
arr<-array(rnorm(10*10*10*10),dim=c(10,10,10,10))
mask<-quantMask(arr,.7)

Run the code above in your browser using DataLab