Process image coming from a OpenGL rendering context

asked 2016-08-29 10:20:58 -0500

Hi all! I have an image coming from an OpenGL rendering context:

alt text

We have alpha background both inside and outside the black contour. I'd like to know whether the image inside the black contour contains alpha values. If yes, I'll do some processing in the scene in order to reduce the alpha (basically scaling the image sprite), then export the render again and do the same process, until we have no alpha pixels inside the contour. I think that OpenCV is right technology to do the image scanning. I have done some basic stuff before with OpenCV, like altering the colors of each pixel of an image, but I think I need more experience this time. Do you know which could be the best approach? We are using OpenCV 2.4.7 in a C++ project.

Thanks, Robert.

edit retag flag offensive close merge delete