1 | initial version |
You can't use wchar_t*
as filename in imread.
Read documentation for imread
:
C++: Mat imread(const string& filename, int flags=1 )
where filename
must be a std::string
or char*
or "a file name"
.
Your question should be How to convert wchar to std::string that is out of scope.