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