Why do we here not pass mask as above, that is with cv::Mat &mask?