Change std::array initialization to please gcc
Use cv::Mat instead of cv::InputArray (cause a segfault when compiled with gcc)

Spotted by Q Bonnard