Made some minor changes trying to get code to work.
Considering using JavaCV (OpenCV port) instead of the NI vision tools.