I have an image as shown and using OpenCV I want to find the contours based on the color of each of the contours. The pixel values in this image are 0,1 and 2.