bmeaut / grainautline

GrainAutLine: image processing for geology and material sciences
GNU General Public License v3.0
0 stars 2 forks source link

On Windows OpenCV refuses to open files with non-ANSI characters in their paths #92

Closed szotsaki closed 8 years ago

szotsaki commented 8 years ago

See the corresponding bug report: https://github.com/Itseez/opencv/issues/4292

szotsaki commented 8 years ago

Disable file opening with special characters in its path in 7fcafd43f6795b4cd8f8dd8e165d8785d99f14df under Windows.

Other possible alternative would be to replace std::string to QString in the PSD class, since it stores a character with 16 bit internally and then give the char* representation to OpenCV with mystring.toLocal8Bit.constData().