char* filename1="1.bmp";
IplImage* greyLeftImg= cvLoadImage(filename1,0);
char* filename2="2.bmp";
IplImage* greyRightImg= cvLoadImage(filename2,0);
IplImage* greyLeftImg32=cvCreateImage(cvSize(width,height),32,greyLeftImg->nChannels);//IPL_DEPTH_32F
IplImage* greyRightImg32=cvCreateImage(cvSize(width,height),32,greyRightImg->nChannels);
總是失敗,說: 「斷言失敗(src.size == dst.size & & dst.type()== CV_8UC(src.channels()))的未知函數」Opencv 2.4.3如何將IPL_DEPTH_8U轉換爲IPL_DEPTH_32F?
我已搜查對於很多方法來說,但他們都沒有工作?
THX,我現在解決它。 – Leoxu