Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzzy spatial c-means #339

Closed
ntustison opened this issue Feb 12, 2021 · 3 comments
Closed

Fuzzy spatial c-means #339

ntustison opened this issue Feb 12, 2021 · 3 comments

Comments

@ntustison
Copy link
Member

Hey @stnava,

In working on this histograms paper, I implemented a version of the fuzzy spatial c-means since I couldn't find it anywhere. It's pretty quick

fuzzySpatialCMeansSegmentation <- function( image, mask, numberOfClusters = 4,
  m = 2, p = 1, q = 1, radius = 2, maxNumberOfIterations = 20, convergenceThreshold = 0.2,
  verbose = FALSE )
seg <- fuzzySpatialCMeansSegmentation( image, mask, numberOfClusters = 3, convergenceThreshold = 0.01, verbose = TRUE )
Cluster centers:  63.5 127 190.5 
Iteration 1 (out of 20) --- Dice overlap = 0
Iteration 2 (out of 20) --- Dice overlap = 0.8941908
Iteration 3 (out of 20) --- Dice overlap = 0.9218776
Iteration 4 (out of 20) --- Dice overlap = 0.9493425
Iteration 5 (out of 20) --- Dice overlap = 0.9635466
Iteration 6 (out of 20) --- Dice overlap = 0.9742551
Iteration 7 (out of 20) --- Dice overlap = 0.9824668
Iteration 8 (out of 20) --- Dice overlap = 0.9885702
Iteration 9 (out of 20) --- Dice overlap = 0.9902902

Screen Shot 2021-02-12 at 8 57 01 AM

Was wondering if it'd be worth having in ANTsR?

@stnava
Copy link
Member

stnava commented Feb 12, 2021

yes - I have a few implementations of this lying around as well but never added it ... probably worth having due to speed.

@ntustison
Copy link
Member Author

Okay, will put that in.

@ntustison
Copy link
Member Author

#341

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants