c++ - Cannot read image -


i'm trying read image using opencv, did following:

input_image = imread(argv[1], imread_unchanged);     if(input_image.empty())     {         cout<<"image cannot read";         return -1;     } 

i'm using xcode 6.4, , pass two arguments, 1 input image , output image.

so, did following in order pass argument:

product --> scheme --> edit scheme... 

and, under arguments, added 2 arguments: image1.png , image2.png.

i had image1.png, added directory containing main.cpp. but, when try run program, input image seems not read, since above if-statement evaluates true, , error message.

why that? doing wrong?

thanks.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -