This will not work on Linux. On Linux implementation calls `cv::String::find(exten)`, which will return `false` for empty string. I think it would be better to use `"*"` here.