`const std::vector<Mat>&` should be replaced by `InputArrayOfArrays`