It looks like the WPI guys are working on the memory leak in the WPIJavaCV.jar file (there were some commits yesterday -
revision 213).
I was successful in downloading the latest source from the
SmartDashboard project and rebuilding the WPIJavaCV.jar file. Things are running much better now. I've been able to process the same image over 250000 times using the WPI methods without running out of memory (which is a lot more than we'll ever hope to get through in a single match).
In case anyone else is hitting this issue and wants to try an updated build of the WPIJavaCV.jar file I've attached a zip file containing what I'm currently running with. To use:
1. Download the ZIP file
2. Extract the WPIJavaCV.jar file from the ZIP file
3. Rename your existing WPIJavaCV.jar file (in the SmartDashboard/extensions/lib directory).
4. Copy the new WPIJavaCV.jar file into your SmarDashboard/extensions/lib/ directory (folder).