update cpp samples and tutorials
This commit is contained in:
@@ -4,11 +4,10 @@
|
||||
* @author
|
||||
*/
|
||||
|
||||
#include "opencv2/highgui/highgui.hpp"
|
||||
#include "opencv2/highgui.hpp"
|
||||
#include "opencv2/imgcodecs.hpp"
|
||||
#include "opencv2/imgproc/imgproc.hpp"
|
||||
#include "opencv2/imgproc.hpp"
|
||||
#include <iostream>
|
||||
#include <stdio.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace cv;
|
||||
@@ -16,12 +15,19 @@ using namespace cv;
|
||||
/**
|
||||
* @function main
|
||||
*/
|
||||
int main( int, char** argv )
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
Mat src, dst;
|
||||
|
||||
/// Load image
|
||||
src = imread( argv[1], 1 );
|
||||
String imageName( "../data/lena.jpg" ); // by default
|
||||
|
||||
if (argc > 1)
|
||||
{
|
||||
imageName = argv[1];
|
||||
}
|
||||
|
||||
src = imread( imageName, IMREAD_COLOR );
|
||||
|
||||
if( src.empty() )
|
||||
{ return -1; }
|
||||
|
||||
Reference in New Issue
Block a user