I haven't used it but look at embedded matlab and the matlab coder .http://www.mathworks.com/products/matlab-coder/ . This generates c code that you can modify. If you want the image processing libraries that's probably a whole issue by itself.
There are 2 ways to implement Matlab image processing algorithms into V-HDL/Verilog HDL code. 1st way: You can use the System Generator provided by a real-time FPGA/Video-Image Board such as Xilinx Virtex series or Advanced DSP Spartan board. All your image processing modules will be converted into hardware code modules, enabling embedded hardware programming algorithms. 2nd way: You can use the ACCELDSP Matlab software to run your Matlab m-script image processing algorithms into a real-time embedded environment with optimization techniques and minor changes to your code to run your processes in a parallel architecture, and then synthesize and get your V-HDL/Verilog code for real-time embedded processing.