Generate Color Histogram around a contoured object
问题 Hey OpenCV/Emgu gurus, I have an image that I am generating contour for, see below. I am trying to generate a color histogram based pruning of search space of images to look for. How can I get the mask around just the prominent object contour and block out the remaining. So I have a 2 part question: How do I "invert" the image outside the contour? Floodfill invert, not? I am confused with all the options in OpenCV. Second, how do I generate a 1-d color histogram from the contoured object in