My development environment is as follows: VisualStudio 2008 .NET framework c++
OpenCV3.0.0
I use the calcHist function to bulid a histogram.
//*************// cvtColor(src, src_gray, COLOR_BGR2GRAY); float range[2] = { 0, 255 }; const float *ranges[1] = { range }; MatND hist;(or Mat hist ) calcHist( &src_gray, 1, 0, Mat(), hist, 1, 256, Ranges, true, false ); //**************//
when I coding in console ,compiler successfully,and is normal execution. But I conding in windowsform is appear error C2665: 'cv::calcHist' : none of the 3 overloads could convert all the argument types, compiler fails.
I don't know which side my code out of the question