thresh2 | R Documentation |
Threshold an image using a disc rather than rectangle.
thresh2(x, width, offset, boundary = c("replicate", "circular"))
x |
|
width |
Half-width of the moving disc window. |
offset |
Thresholding value from the averaged value. |
boundary |
Behavior at image border, where default is to extend the
image beyond the borders, which differs from the default for
|
This function returns the binary image generated by a local thresholding algorithm using a moving disc.
x <- readImage(system.file("extdata", "by_stack/file001.tif", package = "virustiter"))
xb <- normalize(gblur(x[,,c(1,3)], 2))
xt <- thresh2(xb, width = 12, offset = 0.05)
plot(combine(xb, xt), all = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.