-->

Producing negative of a grayscale image: C++ and OpenCV

Producing negative of a grayscale image: C++ and OpenCV
    Theory
    The concept behind negative of grayscale image is very simple. Just subtract each intensity level of an image from 255. The negative transformation is given by the function
    s = L - 1 - r
    Where s is the pixel after transformation, r is the pixel before transformation and L is the maximum intensity level (in our case it is 256).

    Program
    The program is written in C++ using OpenCV library in QT IDE. If you are using QT IDE then add the following line of code in .pro file.
    Read more »
    fardi zayden
    @مرسلة بواسطة
    كاتب ومحرر اخبار اعمل في موقع دراسات تقنية .

    إرسال تعليق