How to segment rocks from the given image?

Since background and rock are having the same color, I needed to segment the given image by some means. I tried using rgb and hsv processing but so far got this only, now how to remove small marks and dents and create a boundary to cover segment each rocks with some particular size. Tried using bwperim also but didn't worked out :( Here is the image and here is the image I segmented.
<<
>>

Gefragt:

am 11 Mär. 2018

Beantwortet:

am 13 Mär. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by