QT5 + OpenCV 3.4 + calcHist function not found

asked 2018-12-23 06:15:56 -0600

ademmler gravatar image

updated 2018-12-23 06:50:49 -0600

LBerger gravatar image

Hi,

I am using OpenCV 3.4.1 within QT5 on Mac OS X 10.14. I try to realize the standard Histogram example within QT. I get this error before compilation: /QtProjects/CameraBox/mainwindow.cpp:186: error: no matching function for call to 'calcHist'

Parts of my code:

#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/objdetect.hpp>

later ...

//! [Compute the histograms]
    Mat b_hist, g_hist, r_hist;
    calcHist( &bgr_planes[0], 1, 0, Mat(),
            b_hist, 1, &histSize, &histRange,
            true,
            false );

Does anybody knows this and has a solution?

edit retag flag offensive close merge delete