Description Usage Arguments Value Author(s) References Examples
View source: R/fuzzy_thresholding.R
automatic fuzzy thresholding based on particle swarm optimization
1 2 3 | ThresholdFuzzy(im, n = 50, maxiter = 100, omegamax = 0.9,
omegamin = 0.1, c1 = 2, c2 = 2, mutrate = 0.2, vmaxcoef = 0.1,
intervalnumber = 1000, returnvalue = FALSE)
|
im |
a grayscale image of class cimg |
n |
swarm size |
maxiter |
maximum iterative time |
omegamax |
maximum inertia weight |
omegamin |
minimum inertia weight |
c1 |
acceleration coefficient |
c2 |
acceleration coefficient |
mutrate |
rate of gaussian mutation |
vmaxcoef |
coefficient of maximum velocity |
intervalnumber |
interval number of histogram |
returnvalue |
if returnvalue is TRUE, returns a threshold value. if FALSE, returns a pixel set. |
a pixsel set or a numeric
Shota Ochi
Linyi Li, Deren Li (2008). Fuzzy entropy image segmentation based on particle swarm optimization. Progress in Natural Science.
1 2 3 4 | g <- grayscale(boats)
layout(matrix(1:2, 1, 2))
plot(g, main = "Original")
ThresholdFuzzy(g) %>% plot(main = "Fuzzy Thresholding")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.