DigitalImageProcess Personal C++ Code for Digital Image Processing. You should follow this guide http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html to be able to use opencv in visual studio first of all.