Some weeks ago I had the idea to combine Matlab and DirectShow, and here's the result ... ... a DirectShow filter that will use Matlab to transform a video stream. The filter will accept the path to a M-File and the Variable Names of the Input and Output Frame. When the DirectShow Filter Graph starts the "Matlab Video Filter" starts the Matlab Command Shell automatically in the background. For each frame the "Matlab Video Filter" load the Input Frame to a Matlab matrix, put the matrix to the Matlab ......
Today I have finished my second DirectShow filter, a Transform filter to convert a RGB video stream to Grayscale.

The whole Microsoft Visual Studio 2005 project can be downloaded from here.
This week I have created my first DirectShow filter, a simple TransInPlace filter that will add a logo to a video stream.

The whole Microsoft Visual Studio 2005 project can be downloaded from here.