Invalid usage of cv::Ptr for arrays fixed