I am trying to convert the optical flow code to C/C++ code. However, the core of the code is Coarse2FineTwoFrames.m file which is written in C++ and only a mex file is used to call the function using matlab.
Having this mex file makes Matlab coder unable to convert the code to C/C++ as it can not find the Coarse2FineTwoFrames function.
Can you please tell me how to get the Coarse2FineTwoFrames.m written completely in Matlab?