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
Post a Comment