View source: R/detectObjects.R
detectObjects2 | R Documentation |
detect object
detectObjects2( img, offset = 0.2, objectSizeRange = c(10, 1000), size = 5, w = 40, h = 40, tolerance = 1, ext = 1, ... )
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. |
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
an label Image.
Jianhong Ou
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.