Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

QT5 + OpenCV 3.4 + calcHist function not found

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?

QT5 + OpenCV 3.4 + calcHist function not found

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/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/objdetect.hpp>
 later ...
 

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?