FlowJ is a collection of popular 2D optical flow algorithms, Lucas and Kanade, Uras, Fleet and Jepson, and Singh, in Java.
Bundled with Fiji, but can also be simply installed to ImageJ as well.