update cpp samples and tutorials

This commit is contained in:
Suleyman TURKMEN committed 2016-06-26 20:55:00 +03:00
1 parent 1aeff45631
commit 11ca1c95f8
110 files changed
+394 -423

No files matched your search

@@ -1,7 +1,7 @@
//! [includes]
#include <opencv2/core/core.hpp>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
#include <string>
@@ -16,7 +16,7 @@ using namespace std;
int main( int argc, char** argv )
{
//! [load]
string imageName("../data/HappyFish.jpg"); // by default
String imageName( "../data/HappyFish.jpg" ); // by default
if( argc > 1)
{
imageName = argv[1];
@@ -28,7 +28,7 @@ int main( int argc, char** argv )
//! [mat]
//! [imread]
image = imread(imageName.c_str(), IMREAD_COLOR); // Read the file
image = imread( imageName, IMREAD_COLOR ); // Read the file
//! [imread]
if( image.empty() ) // Check for invalid input