close

開啟新專案

專案名稱: VS2010ConsoleOpenCV3Beta

image

image

image

C/C++頁面, 點選<其他Include目錄>

image

加入OpenCV include path

C:\opencv-3.0.0-beta\include\opencv;

C:\opencv-3.0.0-beta\include

image

連結器頁面, 點選<一般><其他程式庫目錄>

image

連結器頁面, 點選<輸入><其他程式庫目錄>

image

加入下列函式庫

opencv_calib3d300.lib
opencv_core300.lib
opencv_features2d300.lib
opencv_flann300.lib
opencv_highgui300.lib
opencv_imgcodecs300.lib
opencv_imgproc300.lib
opencv_ml300.lib
opencv_objdetect300.lib
opencv_photo300.lib
opencv_shape300.lib
opencv_stitching300.lib
opencv_superres300.lib
opencv_ts300.lib
opencv_video300.lib
opencv_videoio300.lib
opencv_videostab300.lib

image

   1: #include <opencv2/opencv.hpp>
   2:  
   3: using namespace cv;
   4:  
   5: int _tmain(int argc, _TCHAR* argv[])
   6: {
   7:      Mat src = imread("Porsche.jpg", 0);
   8:      if (!src.data) exit(1);
   9:      Mat dst;
  10:      bilateralFilter(src, dst, -1, 50, 7);
  11:      Canny(dst, dst, 35, 200, 3);
  12:      imwrite("out.png", dst);
  13:      return 0;
  14: }

Porsche

out

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 me1237guy 的頭像
    me1237guy

    天天向上

    me1237guy 發表在 痞客邦 留言(0) 人氣()