Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Convert all pixels of one color to another in JAVA

I have an image and have to convert all the red color to green color. And I am stuck on this part, as I cannot find any function in openCV which specifically does that.

The approach that is coming in my mind is iterating through each pixel of the Matrix and convert the color as and when it comes. But it will be easier if there is some in built method which I cannot find.