detectObjects2: detect objects method2

View source: R/detectObjects.R

detectObjects2R Documentation

detect objects method2

Description

detect object

Usage

detectObjects2(
  img,
  offset = 0.2,
  objectSizeRange = c(10, 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

Brush size, see makeBrush.

tolerance, ext

see watershed.

...

not use.

Details

steps: 1. all piexl - mean value, 2. rescale to increase contrast detect the flys. 1. use opening to remove some samll objects 2. use fillHull to fill the holes. 3. use watershed to segment the object 4. use bwlabel to label the object 5. filter the object by size range

Value

an label Image.

Author(s)

Jianhong Ou


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