阅读背景:

是否有一个公式来确定给定BGR值的整体颜色?(OpenCV和c++)

来源:互联网 

I am making a function using C++ and OpenCV that will detect the color of a pixel in an image, determine what color range it is in, and replace it with a generic color. For example, green could range from dark green to light green, the program would determine that its still green and replace it with a simple green, making the output image very simple looking. everything is set up but I'm having trouble defining the characteristics of each range and was curious if anyone knows or a formula that, given BGR values, could determine the overall color of a pixel. If not I'll have to do much experimentation and make it myself, but if something already exists that'd save time. I've done plenty of research and haven't found anything so far.I am making a function using C++ and OpenCV tha




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: