c++ - How to create openCV image of certain (R, G, B) color and get that color name? -
i need create image filled (r,g,b) color. , color name (r,g,b) = black or red , on. can such thing opencv, , how it?
opencv doesn't create images color, easiest way either fill or draw filled rectangle chosen color.
see http://opencv.willowgarage.com/documentation/drawing_functions.html
specifically http://opencv.willowgarage.com/documentation/drawing_functions.html#rectangle
there isn't (afaik) function return color name, easiest way list of colors somewhere , check rgb values against pixel. if need closest rather exact match (rememebr there aren't names 244bit colors!) @ hsv color space
Comments
Post a Comment