Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

i want to convert from rgb to lab

this is my code and my goal is to convert from rgb to lab but when implement this alghoritm opencv produce error and does'nt answer why? Mat image,im; image=imread("2.jpg"); a=image.rows; b=image.cols; cvtColor(image,im,CV_BGR2Lab); imshow("sohi",im);

i want to convert from rgb to lab

this is my code and my goal is to convert from rgb to lab but when implement this alghoritm opencv produce error and does'nt answer why? why?

Mat image,im; image=imread("2.jpg"); a=image.rows; b=image.cols; cvtColor(image,im,CV_BGR2Lab); image,im;

image=imread("2.jpg");

a=image.rows;

b=image.cols;

cvtColor(image,im,CV_BGR2Lab);

imshow("sohi",im);

i want to convert from rgb to lab

this is my code and my goal is to convert from rgb to lab but when implement this alghoritm opencv produce error and does'nt answer why?

Mat image,im;

image,im; image=imread("2.jpg");

image=imread("2.jpg");

a=image.rows; b=image.cols;

a=image.rows;

b=image.cols;

cvtColor(image,im,CV_BGR2Lab);

imshow("sohi",im);

cvtColor(image,im,CV_BGR2Lab); imshow("sohi",im);