MATLAB: How to extract colour features from rgb images

colour featuresregionprops

I wish to segment and extract colour features from cocoa beans images am working on, which will be primarily used in their classification. I tried 'regionprops' but i am getting errors. Thanks
Related Question