Image Segementation using K means

Can anyone help me.I want to segment a breast or white part from the black background and anything else in an image using K means clustering.

Answers (1)

Image Analyst
Image Analyst on 30 Apr 2017
Edited: Image Analyst on 30 Apr 2017
Not sure it's better than any other method, like imbinarize() or graythresh(), but I'm attaching a kmeans demo. It's for color so you'll have to delete the stuff for the other two color channels and make it work for just a gray scale image. Post your code and image if you have any problem.
See Steve's blog for other options.

2 Comments

I want to do what was done by Abdelali Elmoufidi in their study entitled (*Automatically Density Based Breast Segmentation for Mammograms by using Dynamic K-means Algorithm and Seed Based Region Growing*) since I am using the same database MIAS Database they used in pyhton open CV
OK, good luck.

Sign in to comment.

Asked:

on 30 Apr 2017

Commented:

on 30 Apr 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!