-->

Intensity Histogram using C++ and OpenCV: Image Processing

Intensity Histogram using C++ and OpenCV: Image Processing
    Theory
    The histogram of a digital image with gray levels in the range [0, L-1] is a discrete function h(rk) = nk, where rk is the kth gray level and nk is the number of pixels in the image having gray level rk.
    For an 8-bit grayscale image there are 256 different possible intensities, and so the histogram will graphically display 256 numbers showing the distribution of pixels among those grayscale values.

    Algorithm

    1. Assign zero values to all element of the array hf;
    2. For all pixel (x, y) of the image f, increment hf [f(x, y)] by 1.
    Read more »
    fardi zayden
    @مرسلة بواسطة
    كاتب ومحرر اخبار اعمل في موقع دراسات تقنية .

    إرسال تعليق