Introduction - If you have any usage issues, please Google them yourself
The histogram is a very important tool in computer vision, OpenCV which provides a lot of information on the function of the histogram processing. One of the most basic is calculated histogram function calcHist (). The histogram has also been introduced in front of the Bowen: basic study notes of opencv (4): histogram learning. However, I research needs to be calculated multiple pictures of a one-dimensional histogram characteristics, and each image corresponds to a different mask matrix, and began to think that OpenCV provided calcHist () function to enable this functionality, because one of the a parameter InputArrayOfArrays, at first glance Is not that can handle multiple pictures you will feel overloaded functions? Behind careful study to find out that it implements the functionality and my needs are different, and therefore requires its own separate write a function to accomplish this function. Development Environment: OpenCV2.4.3+Qtcreator2.5.1