Quiver for optical flow

Standard matlab’s quiver function has axis origin in left bottom corner, however, images have origin in top left corner. To display optical flow vector field consistenly i use the following fucntion: function [ output ] = quiver_flow( u, v ) %QUIVER_FLOW Displays quiver for optical flow % SMatyunin2014 output = quiver( u, v, 0); axis ij; end

November 6, 2014 · SergeM

Python equivalent of interp2

I wrote python version of interp2(z, xi, yi,‘linear’) from matlab https://github.com/serge-m/pyinterp2

September 16, 2014 · SergeM

Use Matlab function from python

There are several solutions: Source: http://stackoverflow.com/questions/2883189/calling-matlab-functions-from-python pymatA low level interface to Matlab using the matlab engine (libeng) for communication (basically a library that comes with matlab). The module has to be compiled and linked with libeng. [http://pymat.sourceforge.net](http://pymat.sourceforge.net/" rel="nofollow) Last updated: 2003 pymat2A somewhat short lived continuation of the pymat development. Seems to work on windows (including 64bit), linux and mac (with some changes). [https://code.google.com/p/pymat2/](https://code.google.com/p/pymat2/" rel="nofollow) Last updated: 2012 mlabwrapA high level interface that also comes as a module which needs compilation and linking against libeng....

August 31, 2014 · SergeM

lambda functions in matlab

I discovered it during Machine learnin courses on Coursera To specify the actual function we are minimizing, we use a "short-hand" for specifying functions with the @(t) ( costFunction(t, X, y) ) . This creates a function, with argument t, which calls your costFunction. This allows us to wrap the costFunction for use with fminunc. @(t) ( costFunction(t, X, y) ) - that’s awesome

May 24, 2014 · SM!


fmincor( ponter to target function, initial point, list of constrains) - some improved gradient decent. Step is adaptive. useParallel - automatic parallel

November 18, 2013 · SergeM