1 | initial version |
You can apply a filter and use the RGB values to detect the level of the primary colors that are present in an image. After that you can edit the levels so as to reduce the yellow component in the image.
You can get the scalar values using cvGet2D (don't know what the name is in the current documentation) and use this to find out the levels. Then you can create your own Scalar from this and convert it into an image using cvSet2D (again check documentation for current name).
Hope this helps :)