Description Usage Arguments Details Value Author(s) Examples
View source: R/fuzzySpatialCMeansSegmentation.R
Fuzzy spatial c-means for image segmentation.
1 2 3 4 5 6 7 8 9 10 11 12 | fuzzySpatialCMeansSegmentation(
image,
mask = NULL,
numberOfClusters = 4,
m = 2,
p = 1,
q = 1,
radius = 2,
maxNumberOfIterations = 20,
convergenceThreshold = 0.02,
verbose = FALSE
)
|
image |
image to be segmented. |
mask |
optional mask image. Otherwise, the entire image is used. |
numberOfClusters |
number of segmentation clusters |
m |
fuzziness parameter (default = 2). |
p |
membership importance parameter (default = 1). |
q |
spatial constraint importance parameter (default = 1).
|
radius |
neighborhood radius (scalar or array) for spatial constraint. |
maxNumberOfIterations |
iteration limit (default = 20). |
convergenceThreshold |
Convergence between iterations is measured using the Dice coefficient (default = 0.02). |
verbose |
print diagnostics to the screen. |
Image segmentation using fuzzy spatial c-means as described in
Chuang et al., Fuzzy c-means clustering with spatial information for image segmentation. CMIG: 30:9-15, 2006.
list containing segmentation and probability images
NJ Tustison
1 2 3 | image <- antsImageRead( getANTsRData( "r16" ) )
mask <- getMask( image )
fuzzy <- fuzzySpatialCMeansSegmentation( image, mask )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.