Last year one of our students wrote image processing code in Java.
We used the command based robot template. The camera Code resides within a subsystem.
The code is available here for reference:
https://gist.github.com/jcorcoran/5228621
Hopefully that helps get you moving in the right direction.
Something to watch out for is performance. The frame rate can get pretty low for image processing running cRIO side. You may want to look at performing your vision processing using openCV through the smartdashboard. Vision processing code would run on on your driver station laptop in this case. There are plenty of good resources on driverstation side image processing code.
http://www.chiefdelphi.com/forums/sh...ght=341+vision
https://code.google.com/p/frc2012-te...i/VisionCoding