I am trying to implement various Matlab functions in opencv using c++. These are the functions lab2uint8 , lab2uint16 , lab2double , xyz2double , xyz2uint16. These conversions I did by 'convertTo' function. For example: lab2uint8 conversion ' lab.convertTo(Result,CV_8U)' . Then I can't show my Result image by imshow function. But I can save the Result image by imwrite function. I know I am troubling you by repeatedly asking similar type of questions, sorry for that.
↧