detectObjects3: detect objects method3

View source: R/detectObjects.R

detectObjects3R Documentation

detect objects method3

Description

detect object, good for dense objects.

Usage

detectObjects3(
  img,
  offset = 0.1,
  objectSizeRange = c(50, 1000),
  size = 5,
  w = 40,
  h = 40,
  tolerance = 1,
  ext = 1,
  ...
)

Arguments

img

an object of Image or Image2.

offset, w, h

offset,w,h for thresh

objectSizeRange

numeric(2). object size range in pixel.

size

see makeBrush

tolerance, ext

see watershed.

...

not use.

Details

steps: 1. use watershed to segment the objects. 2. use bwlabel to label the objects 3. 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.