[問題] opencv v2.1 有關cv::imread

看板C_and_CPP (C/C++)作者時間15年前 (2010/12/17 17:04), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, Gcc, Linux, ...) VC++2010 額外使用到的庫(Library Used) (Ex: OpenGL, ...) opencv 2.1 C++ 問題(Question): 如何讀出圖片中的pixel值? 餵入的資料(Input): lena.jpg (512*512) 預期的正確結果(Expected Output): 錯誤結果(Wrong Output): exception錯誤 程式碼(Code): (請善用置底文標色功能) Mat src_img = imread("lena.jpg",0); printf("%f\n",src_img.at<float>(1,1)); 補充說明(Supplement): -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.13.168
文章代碼(AID): #1D2oUuNC (C_and_CPP)
文章代碼(AID): #1D2oUuNC (C_and_CPP)