close
開啟新專案
專案名稱: VS2010ConsoleOpenCV3Beta
C/C++頁面, 點選<其他Include目錄>
加入OpenCV include path
C:\opencv-3.0.0-beta\include\opencv;
C:\opencv-3.0.0-beta\include
連結器頁面, 點選<一般><其他程式庫目錄>
連結器頁面, 點選<輸入><其他程式庫目錄>
加入下列函式庫
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
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: }
全站熱搜
留言列表