1 | initial version |
You need to convert CString that is a wide string to std::string that is 8bit string. This involves locales and so on.
If you are sure that the CString contains only 8bit chars you might use the CW2A
macro from MS and write
Mat im = imread(CW2A(pszImageFilePath));