split image on the basis of color
问题 I have obtained an image after applying k-means with clusters = 3. Now I want to obtain 3 separate images on the basis of colours obtained after k-means. For example, consider the attached image. Now I need one image such that it contains only the blue square. One having the letter v and one with just the background Is there any possible way to do that using OpenCV and python. 回答1: The most general and simplest way to do it is using the three unique gray colors for each region. (Although I