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:
@@ -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 |
Reference in New Issue
Block a user