I have applied watershed segmentation algorithm on occluded leaves and found out the region of interest (ROI) for a single leaf. The regions have been labeled with different colors, as shown in the image given below. Now the main task is to extract the region of the original with the color having the largest region i.e. the sky blue region. Please provide me the MatLAB code. Thank you for the help.
ORIGINAL IMAGE
SEGMENTED IMAGE
SEGMENTED IMAGE SUPERIMPOSED ON ORIGINAL IMAGE