detectObjects: detect objects method1

View source: R/detectObjects.R

detectObjectsR Documentation

detect objects method1

Description

detect object, good for dense objects.

Usage

detectObjects(
  img,
  offset = 0.05,
  objectSizeRange = c(10, 1000),
  size = 31,
  tolerance = 1,
  ext = 1,
  ...
)

Arguments

img

an object of Image or Image2.

offset

the offset of color from background, (0, 1).

objectSizeRange

numeric(2). object size range in pixel.

size

Brush size, see makeBrush.

tolerance, ext

see watershed.

...

not use.

Details

steps: 1. use filter2 to creat local background. 2. the image is convert to 0 or 1 by local background + offset 3. use fillHull to fill the holes 4. use watershed to segment the objects. 5. use bwlabel to label the objects 6. filter the objects by size range.

Value

an label Image.

Author(s)

Jianhong Ou


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