I use OpenCV for android.
I would like to know how the image can be automatically corrected (contrast / brightness) using the OpenCV library or can it be done in a native way? (Via the ColorMatrixFilter from Android ).

I tried to google, but did not find an imputed tutorial / example on this topic.
How can this be done?
Thank you

    1 answer 1

    Despite the fact that the recovery algorithms for unevenly lit images are numerous, OpenCV currently does not provide something ready-made from the box. Nevertheless, the network has many examples of implementation, and just using OpenCV.

    The most common algorithms are based on Retinex (a bit of a related theory on the Russian wiki: Color Constancy ), but I would like to highlight the site, if I'm not mistaken, of the Croatian developers - "Image Processing Group" . It presents in free access not only the source code (C ++ / OpenCV, GNU GPL license), but even a tool that allows you to personally evaluate the results of the algorithms directly in the browser.

    Before processing After processing

    • can I link to the source? (and I don’t find something on the site) - XTL
    • @VetaLio, see Resources -> Color constancy - alexis031182