This method is defined in the namespace of cv::superres instead of cv::ocl, so I'm afraid we cannot do as what you said.