mask_img: Masks images with given mask

Description Usage Arguments Value

Description

Masks images with given mask, i.e., sets pixel values to 0 which are not in the mask

Usage

1
mask_img(images, mask)

Arguments

images

array of pixel intensities, 3rd dimension has to be the color channels, 4th dimension the time. For grayscale images this means that dim(images) = (*,*,1,*), for color images dim(images) = (*,*,3,*)

mask

matrix with 0/1 giving the mask

Value

Array with same dimension as input array.


phenofun documentation built on Jan. 22, 2017, 9:01 p.m.

Related to mask_img in phenofun...