I have done the segmentation and able to select the fruit region. i also get the Pixel Id list of the selected fruit region here thisBlobsPixels = blobMeasurements(k).PixelIdxList; Now how can i use this pixel id list to compute various color channel (red channel, green channel, blue channel) of the selected region. The attached image is gray scale image. Thanks in advance.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/188786/image.png)