Skip to content

Instantly share code, notes, and snippets.

@volkansalma
Created March 27, 2011 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save volkansalma/889023 to your computer and use it in GitHub Desktop.
Save volkansalma/889023 to your computer and use it in GitHub Desktop.
OpenCV C++
#ifdef _DEBUG
#pragma comment(lib,"opencv_core220d")
#pragma comment(lib,"opencv_highgui220d")
#pragma comment(lib,"opencv_imgproc220d")
#else
#pragma comment(lib,"opencv_core220")
#pragma comment(lib,"opencv_highgui220")
#pragma comment(lib,"opencv_imgproc220")
#endif
#include <opencv2/opencv.hpp>
int main()
{
cv::Mat testImage;
for(int i = 0; i < 10 ; i++)
{
testImage = cv::imread("hasan.jpg",1);
cv::imshow( "testImage", testImage);
cv::waitKey();
}
cv::waitKey();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment