How to use k means segmentation to segment color image without converting it into gray scale?
Show older comments
We are doing project on soil colour detection.Suppose in the image we have soil,trees & sky we should eliminate sky and trees and get only soil image for further processing. Which segmentation will be good for? Can we use k means? If yes please some one send k means algorithm for colour image processing. We tried with so many codes but we are able to get gray images.how to convert them back to rgb?
Accepted Answer
More Answers (1)
Ahmet Cecen
on 3 Mar 2018
1 vote
Read K-Means, especially the part about "X" (the input). An image is simply a 3 dimensional dataset. You should be able to figure out the next steps.
Categories
Find more on Color Segmentation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!