The documentation of cv::optflow::createOptFlow_DeepFlow
states:
Parameters - class fields - that may be modified after creating a class instance
How can one modify these parameters? All one gets is a Ptr<DenseOpticalFlow>
and cv::optflow::OpticalFlowDeepFlow
is not in the public interface, so one can not even dynamic_cast
to it.