看板 C_and_CPP 關於我們 聯絡資訊
平台:VC++2008 額外使用到的函數庫(Library Used):OpenCV 問題(Question):我有按照這個函式的格式下去打 可是除錯時出現這個錯誤 可以請問大家這是甚麼意思嗎 謝謝~~ 錯誤結果(Wrong Output): error C2440: '正在初始化' : 無法由'CvSURFParams'轉換為' CvSURFParams* ' 程式碼(Code): IplImage* img1=cvLoadImage("D:\\Fun\\Photo\\test.jpg", 0); IplImage* img2=cvLoadImage("D:\\Fun\\Photo\\test.jpg", 0); CvMemStorage* storage = cvCreateMemStorage(0); CvSeq* objectKeypoints1=NULL, *objectKeypoints2=NULL; CvSeq* objectDescriptors1=NULL, *objectDescriptors2=NULL; CvSURFParams* params=cvSURFParams(600,1); cvExtractSURF(img1, 0, &objectKeypoints1, &objectDescriptors1, storage, cvSURFParams(600, EXTENDED_DESCRIPTOR)); cvExtractSURF(img2, 0, &objectKeypoints2, &objectDescriptors2, storage, cvSURFParams(600, EXTENDED_DESCRIPTOR), 0); -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.45.99.93
CRAZYFAN:CvSURFParams params=cvSURFParams(600,1);試試? 03/24 03:15
closeryou:沒錯了謝謝C大^^ 可是也沒做函式那行的功用@@ 03/24 03:24
ericinttu:無法由'CvSURFParams'轉換為' CvSURFParams* 03/24 06:01