Update Samples

This commit is contained in:
Suleyman TURKMEN
2019-07-28 12:09:17 +03:00
committed by sturkmen72
parent 9ef5373776
commit f73395122c
72 changed files with 251 additions and 271 deletions
@@ -4,19 +4,18 @@
#include <opencv2/highgui.hpp>
#include <iostream>
#include <string>
//! [includes]
//! [namespace]
using namespace cv;
using namespace std;
//! [namespace]
using namespace std;
int main( int argc, char** argv )
{
//! [load]
String imageName( "../data/HappyFish.jpg" ); // by default
String imageName( "HappyFish.jpg" ); // by default
if( argc > 1)
{
imageName = argv[1];
@@ -28,7 +27,7 @@ int main( int argc, char** argv )
//! [mat]
//! [imread]
image = imread( imageName, IMREAD_COLOR ); // Read the file
image = imread( samples::findFile( imageName ), IMREAD_COLOR ); // Read the file
//! [imread]
if( image.empty() ) // Check for invalid input