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);