💪🏻 6. Histogram
Contents
1. Histogram introduction
OpenCV Lecture - 6_1.Histogram(1/6) : Histogram Introduction
Source code
- http://study.marearts.com/2013/09/opencv-make-histogram-and-draw-example.html
- http://study.marearts.com/2014/11/opencv-emdearth-mover-distance-example.html
- http://study.marearts.com/2014/05/open-cv-get-histogram-and-compare-color.html
💡 bin, hog, bow
2. Histogram generating & drawing
OpenCV Lecture - 6_1.Histogram(2/6) : Histogram make & draw
Source code
- C++ histogram: http://study.marearts.com/2017/12/gray-image-histogram-without-opencv.html
- OpenCV Histogram: http://study.marearts.com/2017/12/calhist-for-gray-image-opencv-histogram.html
- Histogram draw: http://study.marearts.com/2013/09/opencv-make-histogram-and-draw-example.html
- RGB Histogram: http://study.marearts.com/2017/12/calchist-for-rgb-image-opencv-histogram.html
Reference
- https://docs.opencv.org/2.4/modules/imgproc/doc/histograms.html
- https://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html
💡 calcHist, normalize, gray histogram, rgb histogram
3. Hue(hsv) histogram
OpenCV Lecture - 6_1.Histogram(3/6) Hue(HSV) Histogram

Source code
- Image: http://study.marearts.com/2017/12/hue-histogram-example-opencv-source-code.html
- Webcam version: http://study.marearts.com/2017/10/webcam-histogram-test-opencv.html
Reference
💡 cvConvert, hsv, hue, saturation, value, hsi
4. 2D histogram
OpenCV Lecture - 6_1.Histogram(4/6) 2D Histogram


Source code
💡 minMaxLoc, 2d histogram
5. Stretching
OpenCV Lecture - 6_1.Histogram(5/6) Histogram Stretching

Source code
💡 stretching, normalize
6. Equalization
OpenCV Lecture - 6_1.Histogram(6/6) : Histogram equalization

Source code
💡 equalizeHist
🙇🏻Thank you!
🎁 Source code, Material(pdf) and example images 👇
https://www.marearts.com/products/opencv-lecture-materials-1