filterImage: filter image

View source: R/filterImage.R

filterImageR Documentation

filter image

Description

filter pixels by conditions

Usage

filterImage(img, ..., expand.size = 21)

Arguments

img

An object of Image or Image2

...

filter criteria

expand.size

extend the regions that meet the filter criteria by pixels. A numeric containing the size of the brush in pixels. This should be an odd number; even numbers are rounded to the next odd one, i.e., size = 4 has the same effect as size = 5. Default is 21

Value

An object of Image or Image2

Author(s)

Jianhong Ou library(EBImage) img <- readImage(system.file("extdata", "low.jpg", package="cellCounter")) img <- filterImage(img, red > .3, green > .3, green + .1 > red, green < red + .3)


jianhong/cellCounter documentation built on June 10, 2022, 8 p.m.