Added the OpenCV with Visual Studio tutorial. Enhanced, extended the Windows Installation one. Some minor CSS changes to avoid unnecessary large spaces inside enumerations in the tutorials.

This commit is contained in:
Bernat Gabor
2011-07-06 00:01:27 +00:00
parent 20dd7b70c0
commit e18de3c6ab
25 changed files with 224 additions and 15 deletions

View File

@@ -0,0 +1,24 @@
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
using namespace cv;
int main( int argc, char** argv )
{
Mat image;
image = imread("opencv-logo.png"); // Read the file
if(! image.data ) // Check for invalid input
{
std::cout << "Could not open or find the image" << std::endl ;
return -1;
}
namedWindow( "Display window", CV_WINDOW_FREERATIO );// Create a window for display.
imshow( "Display window", image ); // Show our image inside it.
waitKey(0); // Wait for a keystroke in the window
return 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB