[問題] opencv v2.1 有關cv::imread
開發平台(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
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章