Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use calcHist function in VC++.net environment under

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

Under VC++.net environment Use calcHist function in VC++.net environment underfunction

My development environment is as follows: follows:

VisualStudio 2008

.NET framework framework

c++

OpenCV3.0.0

================================================================

I use the calcHist function to bulid a histogram.

//**************// //

cvtColor(src, src_gray, COLOR_BGR2GRAY); 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

Under VC++.net environment Use calcHist function

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