Created
May 10, 2011 10:44
-
-
Save t-abe/964254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use opencv | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/imgproc/imgproc_c.h> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/calib3d/calib3d.hpp> | |
#ifdef _DEBUG | |
#pragma comment( lib, "opencv_core229d.lib" ) | |
#pragma comment( lib, "opencv_imgproc229d.lib" ) | |
#pragma comment( lib, "opencv_highgui229d.lib" ) | |
#pragma comment( lib, "opencv_calib3d229d.lib" ) | |
#else | |
#pragma comment( lib, "opencv_core229.lib" ) | |
#pragma comment( lib, "opencv_imgproc229.lib" ) | |
#pragma comment( lib, "opencv_highgui229.lib" ) | |
#pragma comment( lib, "opencv_calib3d229.lib" ) | |
#endif | |
int main(){ | |
cv::Mat img = cv::Mat::zeros(300, 300, CV_8U); | |
cv::circle(img, cv::Point(150, 150), 50, cv::Scalar(255), 10); | |
cv::imshow("img", img); | |
cv::waitKey(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment