在我的书中,将图像从一种颜色空间转换为另一种颜色空间的方法是cv::cvtColor()
. 但是,我在命名空间中找不到该方法cv
!也就是说,我用的是VS 2010 express,intellisense也不知道这个方法!
我使用的是opencv 2.4,那么这个方法是移动到另一个命名空间还是什么的?CV中没有的请看下面的方法
#include <iostream>
#include <opencv2\core\core.hpp>
#include <opencv2\highgui\highgui.hpp>
using namespace std;
using namespace cv;
int main()
{
Mat m;
//cv::cvtColor(Mat,Mat,int) is not there!
}