1 | initial version |
Okay, this code snippet works perfectly on my system - just tested it
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;
using namespace std;
int main()
{
Mat image, image_out;
image=imread("/home/steven/Documents/test.jpg");
cvtColor(image, image_out, CV_BGR2Lab);
imshow("sohi",image_out); waitKey(0);
return 0;
}
So I am guessing you are either in one of the following problems