错误解析->“cvGetHistValue_ND”: 找不到标识符

编译环境:OpenCV2.4.8 + VS2012

解决办法:

               对应加入:

 
 
#define cvGetHistValue_1D( hist, idx0 )     ((float*)(cvPtr1D( (hist)->bins, (idx0), 0 )) 
#define cvGetHistValue_2D( hist, idx0, idx1 )  ((float*)(cvPtr2D( (hist)->bins, (idx0), (idx1), 0 )) 
#define cvGetHistValue_3D( hist, idx0, idx1, idx2 )   ((float*)(cvPtr3D( (hist)->bins, (idx0), (idx1), (idx2), 0 )) 
#define cvGetHistValue_nD( hist, idx )      ((float*)(cvPtrND( (hist)->bins, (idx), 0 ))
 
               编译通过 

你可能感兴趣的:(错误解析->“cvGetHistValue_ND”: 找不到标识符)