How to segment images based on colour?

I have a RGB image of with n seperate colours seperated together to form a coloured pallete. I need to segment this image into n parts based on their colours and find the average of the Y values of these n segments. How should I proceed?

More Answers (0)

Products

Release

R2020b

Community Treasure Hunt

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

Start Hunting!