update cpp samples and tutorials

This commit is contained in:
Suleyman TURKMEN
2016-02-15 15:37:29 +02:00
parent 1aeff45631
commit 11ca1c95f8
110 changed files with 394 additions and 423 deletions

View File

@@ -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