wchanged uchar to char, IplImage to Mat